bytex-sdk 1.3.0 → 1.4.0

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/index.js +8 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -6,11 +6,18 @@ const SUPABASE_ANON_KEY = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdWJh
6
6
  export class BytexCloud {
7
7
  constructor(config = {}) {
8
8
  this.apiKey = config.apiKey || null;
9
+ this.byoc = config.byoc || null;
9
10
  this.supabase = createClient(SUPABASE_URL, SUPABASE_ANON_KEY);
10
11
  this.user = null;
11
- console.log(`🚀 ByteX SDK Initialized!`);
12
+
13
+ if (this.byoc) {
14
+ console.log(`🚀 ByteX SDK Initialized in BYOC Mode (External Cloud Bound)`);
15
+ } else {
16
+ console.log(`🚀 ByteX SDK Initialized!`);
17
+ }
12
18
  }
13
19
 
20
+
14
21
  // Auth: Log in using ByteX Email & Password
15
22
  async login(email, password) {
16
23
  const { data, error } = await this.supabase.auth.signInWithPassword({ email, password });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bytex-sdk",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {