nexabase-console 2.1.7 → 2.1.8

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.
@@ -5,6 +5,7 @@ export declare class GeoPoint {
5
5
  isEqual(other: GeoPoint): boolean;
6
6
  toString(): string;
7
7
  toJSON(): {
8
+ __nexa_type__: string;
8
9
  latitude: number;
9
10
  longitude: number;
10
11
  };
@@ -23,7 +23,7 @@ class GeoPoint {
23
23
  return `GeoPoint(latitude=${this.latitude}, longitude=${this.longitude})`;
24
24
  }
25
25
  toJSON() {
26
- return { latitude: this.latitude, longitude: this.longitude };
26
+ return { __nexa_type__: 'geopoint', latitude: this.latitude, longitude: this.longitude };
27
27
  }
28
28
  }
29
29
  exports.GeoPoint = GeoPoint;
@@ -11,6 +11,7 @@ export declare class Timestamp {
11
11
  valueOf(): string;
12
12
  toString(): string;
13
13
  toJSON(): {
14
+ __nexa_type__: string;
14
15
  seconds: number;
15
16
  nanoseconds: number;
16
17
  };
@@ -56,7 +56,7 @@ class Timestamp {
56
56
  return `Timestamp(seconds=${this.seconds}, nanoseconds=${this.nanoseconds})`;
57
57
  }
58
58
  toJSON() {
59
- return { seconds: this.seconds, nanoseconds: this.nanoseconds };
59
+ return { __nexa_type__: 'timestamp', seconds: this.seconds, nanoseconds: this.nanoseconds };
60
60
  }
61
61
  }
62
62
  exports.Timestamp = Timestamp;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nexabase-console",
3
- "version": "2.1.7",
3
+ "version": "2.1.8",
4
4
  "description": "SDK Client resmi untuk NexaBase: Platform Sinkronisasi NoSQL, Realtime, File Storage, & Autentikasi Offline-First.",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",