@b3dotfun/sdk 0.0.8-hf.2 → 0.0.8-hf.3

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.
@@ -8,10 +8,10 @@ const b3_api_1 = require("@b3dotfun/b3-api");
8
8
  const authentication_client_1 = require("@feathersjs/authentication-client");
9
9
  const socketio_client_1 = __importDefault(require("@feathersjs/socketio-client"));
10
10
  const js_cookie_1 = __importDefault(require("js-cookie"));
11
- const socket_io_client_1 = require("socket.io-client");
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.io)(B3_API_URL, { transports: ["websocket"] });
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
@@ -8,7 +8,7 @@ const b3_api_1 = require("@b3dotfun/b3-api");
8
8
  const authentication_client_1 = require("@feathersjs/authentication-client");
9
9
  const socketio_client_1 = __importDefault(require("@feathersjs/socketio-client"));
10
10
  const react_native_mmkv_1 = require("react-native-mmkv");
11
- const socket_io_client_1 = require("socket.io-client");
11
+ const socket_io_client_1 = __importDefault(require("socket.io-client"));
12
12
  const B3_AUTH_COOKIE_NAME = "b3-auth";
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
14
  // React Native compatible store
@@ -43,7 +43,7 @@ class LocalStorage {
43
43
  }
44
44
  }
45
45
  const localStorage = new LocalStorage();
46
- const socket = (0, socket_io_client_1.io)(B3_API_URL, { transports: ["websocket"] });
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
@@ -8,14 +8,14 @@ const basement_api_1 = require("@b3dotfun/basement-api");
8
8
  const authentication_client_1 = require("@feathersjs/authentication-client");
9
9
  const socketio_client_1 = __importDefault(require("@feathersjs/socketio-client"));
10
10
  const js_cookie_1 = __importDefault(require("js-cookie"));
11
- const socket_io_client_1 = require("socket.io-client");
11
+ const socket_io_client_1 = __importDefault(require("socket.io-client"));
12
12
  // Also use b3 auth token since we are using b3-jwt strategy
13
13
  const BSMNT_AUTH_COOKIE_NAME = "b3-auth";
14
14
  const BSMNT_API_URL = process.env.EXPO_PUBLIC_BSMNT_API ||
15
15
  process.env.NEXT_PUBLIC_BSMNT_API ||
16
16
  process.env.PUBLIC_BSMNT_API ||
17
17
  "https://api.basement.fun";
18
- const socket = (0, socket_io_client_1.io)(BSMNT_API_URL, { transports: ["websocket"] });
18
+ const socket = (0, socket_io_client_1.default)(BSMNT_API_URL, { transports: ["websocket"] });
19
19
  class MyAuthenticationClient extends authentication_client_1.AuthenticationClient {
20
20
  getFromLocation(location) {
21
21
  // Do custom location things here
@@ -8,7 +8,7 @@ const basement_api_1 = require("@b3dotfun/basement-api");
8
8
  const authentication_client_1 = require("@feathersjs/authentication-client");
9
9
  const socketio_client_1 = __importDefault(require("@feathersjs/socketio-client"));
10
10
  const react_native_mmkv_1 = require("react-native-mmkv");
11
- const socket_io_client_1 = require("socket.io-client");
11
+ const socket_io_client_1 = __importDefault(require("socket.io-client"));
12
12
  const BSMNT_AUTH_COOKIE_NAME = "bsmnt-auth";
13
13
  const BSMNT_API_URL = process.env.EXPO_PUBLIC_BSMNT_API ||
14
14
  process.env.NEXT_PUBLIC_BSMNT_API ||
@@ -46,7 +46,7 @@ class LocalStorage {
46
46
  }
47
47
  }
48
48
  const localStorage = new LocalStorage();
49
- const socket = (0, socket_io_client_1.io)(BSMNT_API_URL, { transports: ["websocket"] });
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
@@ -2,7 +2,7 @@ import { createClient } from "@b3dotfun/b3-api";
2
2
  import { AuthenticationClient } from "@feathersjs/authentication-client";
3
3
  import socketio from "@feathersjs/socketio-client";
4
4
  import Cookies from "js-cookie";
5
- import { io } from "socket.io-client";
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
8
  const socket = io(B3_API_URL, { transports: ["websocket"] });
@@ -2,7 +2,7 @@ import { createClient } from "@b3dotfun/b3-api";
2
2
  import { AuthenticationClient } from "@feathersjs/authentication-client";
3
3
  import socketio from "@feathersjs/socketio-client";
4
4
  import { MMKV } from "react-native-mmkv";
5
- import { io } from "socket.io-client";
5
+ import io from "socket.io-client";
6
6
  const B3_AUTH_COOKIE_NAME = "b3-auth";
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
8
  // React Native compatible store
@@ -2,7 +2,7 @@ import { createClient } from "@b3dotfun/basement-api";
2
2
  import { AuthenticationClient } from "@feathersjs/authentication-client";
3
3
  import socketio from "@feathersjs/socketio-client";
4
4
  import Cookies from "js-cookie";
5
- import { io } from "socket.io-client";
5
+ import io from "socket.io-client";
6
6
  // Also use b3 auth token since we are using b3-jwt strategy
7
7
  const BSMNT_AUTH_COOKIE_NAME = "b3-auth";
8
8
  const BSMNT_API_URL = process.env.EXPO_PUBLIC_BSMNT_API ||
@@ -2,7 +2,7 @@ import { createClient } from "@b3dotfun/basement-api";
2
2
  import { AuthenticationClient } from "@feathersjs/authentication-client";
3
3
  import socketio from "@feathersjs/socketio-client";
4
4
  import { MMKV } from "react-native-mmkv";
5
- import { io } from "socket.io-client";
5
+ import io from "socket.io-client";
6
6
  const BSMNT_AUTH_COOKIE_NAME = "bsmnt-auth";
7
7
  const BSMNT_API_URL = process.env.EXPO_PUBLIC_BSMNT_API ||
8
8
  process.env.NEXT_PUBLIC_BSMNT_API ||
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@b3dotfun/sdk",
3
- "version": "0.0.8-hf.2",
3
+ "version": "0.0.8-hf.3",
4
4
  "source": "src/index.ts",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "react-native": "./dist/cjs/index.native.js",
@@ -2,7 +2,7 @@ import { createClient } from "@b3dotfun/b3-api";
2
2
  import { AuthenticationClient } from "@feathersjs/authentication-client";
3
3
  import socketio from "@feathersjs/socketio-client";
4
4
  import { MMKV } from "react-native-mmkv";
5
- import { io } from "socket.io-client";
5
+ import io from "socket.io-client";
6
6
 
7
7
  const B3_AUTH_COOKIE_NAME = "b3-auth";
8
8
 
@@ -2,7 +2,7 @@ import { createClient } from "@b3dotfun/b3-api";
2
2
  import { AuthenticationClient } from "@feathersjs/authentication-client";
3
3
  import socketio from "@feathersjs/socketio-client";
4
4
  import Cookies from "js-cookie";
5
- import { io } from "socket.io-client";
5
+ import io from "socket.io-client";
6
6
  import { B3_AUTH_COOKIE_NAME } from "../shared/constants";
7
7
 
8
8
  const B3_API_URL =
@@ -2,7 +2,7 @@ import { createClient } from "@b3dotfun/basement-api";
2
2
  import { AuthenticationClient } from "@feathersjs/authentication-client";
3
3
  import socketio from "@feathersjs/socketio-client";
4
4
  import { MMKV } from "react-native-mmkv";
5
- import { io } from "socket.io-client";
5
+ import io from "socket.io-client";
6
6
 
7
7
  const BSMNT_AUTH_COOKIE_NAME = "bsmnt-auth";
8
8
 
@@ -2,7 +2,7 @@ import { createClient } from "@b3dotfun/basement-api";
2
2
  import { AuthenticationClient } from "@feathersjs/authentication-client";
3
3
  import socketio from "@feathersjs/socketio-client";
4
4
  import Cookies from "js-cookie";
5
- import { io } from "socket.io-client";
5
+ import io from "socket.io-client";
6
6
 
7
7
  // Also use b3 auth token since we are using b3-jwt strategy
8
8
  const BSMNT_AUTH_COOKIE_NAME = "b3-auth";