@drift-labs/sdk-browser 2.138.0-beta.3 → 2.138.0-beta.4

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/VERSION CHANGED
@@ -1 +1 @@
1
- 2.138.0-beta.3
1
+ 2.138.0-beta.4
@@ -165,7 +165,7 @@ export type GrpcConfigs = {
165
165
  * Defaults to false, will throw on connection loss.
166
166
  */
167
167
  enableReconnect?: boolean;
168
- client?: 'yellowstone' | 'lazer';
168
+ client?: 'yellowstone' | 'laser';
169
169
  };
170
170
  export interface HighLeverageModeConfigAccountSubscriber {
171
171
  eventEmitter: StrictEventEmitter<EventEmitter, HighLeverageModeConfigAccountEvents>;
@@ -17,7 +17,7 @@ class grpcSubscription {
17
17
  if (this.subscriber) {
18
18
  return;
19
19
  }
20
- if (this.grpcConfigs.client === 'lazer') {
20
+ if (this.grpcConfigs.client === 'laser') {
21
21
  this.subscriber =
22
22
  await laserProgramAccountSubscriber_1.LaserstreamProgramAccountSubscriber.create(this.grpcConfigs, 'OrderSubscriber', 'User', this.orderSubscriber.driftClient.program, this.orderSubscriber.decodeFn, {
23
23
  filters: [(0, memcmp_1.getUserFilter)(), (0, memcmp_1.getNonIdleUserFilter)()],
@@ -165,7 +165,7 @@ export type GrpcConfigs = {
165
165
  * Defaults to false, will throw on connection loss.
166
166
  */
167
167
  enableReconnect?: boolean;
168
- client?: 'yellowstone' | 'lazer';
168
+ client?: 'yellowstone' | 'laser';
169
169
  };
170
170
  export interface HighLeverageModeConfigAccountSubscriber {
171
171
  eventEmitter: StrictEventEmitter<EventEmitter, HighLeverageModeConfigAccountEvents>;
@@ -17,7 +17,7 @@ class grpcSubscription {
17
17
  if (this.subscriber) {
18
18
  return;
19
19
  }
20
- if (this.grpcConfigs.client === 'lazer') {
20
+ if (this.grpcConfigs.client === 'laser') {
21
21
  this.subscriber =
22
22
  await laserProgramAccountSubscriber_1.LaserstreamProgramAccountSubscriber.create(this.grpcConfigs, 'OrderSubscriber', 'User', this.orderSubscriber.driftClient.program, this.orderSubscriber.decodeFn, {
23
23
  filters: [(0, memcmp_1.getUserFilter)(), (0, memcmp_1.getNonIdleUserFilter)()],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drift-labs/sdk-browser",
3
- "version": "2.138.0-beta.3",
3
+ "version": "2.138.0-beta.4",
4
4
  "main": "lib/node/index.js",
5
5
  "types": "lib/node/index.d.ts",
6
6
  "browser": "./lib/browser/index.js",
@@ -234,7 +234,7 @@ export type GrpcConfigs = {
234
234
  * Defaults to false, will throw on connection loss.
235
235
  */
236
236
  enableReconnect?: boolean;
237
- client?: 'yellowstone' | 'lazer';
237
+ client?: 'yellowstone' | 'laser';
238
238
  };
239
239
 
240
240
  export interface HighLeverageModeConfigAccountSubscriber {
@@ -50,7 +50,7 @@ export class grpcSubscription {
50
50
  return;
51
51
  }
52
52
 
53
- if (this.grpcConfigs.client === 'lazer') {
53
+ if (this.grpcConfigs.client === 'laser') {
54
54
  this.subscriber =
55
55
  await LaserstreamProgramAccountSubscriber.create<UserAccount>(
56
56
  this.grpcConfigs,