@drift-labs/sdk 2.112.0-beta.1 → 2.112.0-beta.2

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.112.0-beta.1
1
+ 2.112.0-beta.2
@@ -420,8 +420,8 @@ class DriftClient {
420
420
  this.userStatsAccountPublicKey = undefined;
421
421
  this.includeDelegates = includeDelegates !== null && includeDelegates !== void 0 ? includeDelegates : false;
422
422
  const walletSupportsVersionedTxns =
423
- //@ts-ignore
424
- (_b = (_a = this.wallet.supportedTransactionVersions) === null || _a === void 0 ? void 0 : _a.size) !== null && _b !== void 0 ? _b : 0 > 1;
423
+ //@ts-expect-error
424
+ ((_b = (_a = this.wallet.supportedTransactionVersions) === null || _a === void 0 ? void 0 : _a.size) !== null && _b !== void 0 ? _b : 0) > 1;
425
425
  this.txVersion = walletSupportsVersionedTxns ? 0 : 'legacy';
426
426
  if (includeDelegates && subAccountIds) {
427
427
  throw new Error('Can only pass one of includeDelegates or subAccountIds. If you want to specify subaccount ids for multiple authorities, pass authoritySubaccountMap instead');
@@ -420,8 +420,8 @@ class DriftClient {
420
420
  this.userStatsAccountPublicKey = undefined;
421
421
  this.includeDelegates = includeDelegates !== null && includeDelegates !== void 0 ? includeDelegates : false;
422
422
  const walletSupportsVersionedTxns =
423
- //@ts-ignore
424
- (_b = (_a = this.wallet.supportedTransactionVersions) === null || _a === void 0 ? void 0 : _a.size) !== null && _b !== void 0 ? _b : 0 > 1;
423
+ //@ts-expect-error
424
+ ((_b = (_a = this.wallet.supportedTransactionVersions) === null || _a === void 0 ? void 0 : _a.size) !== null && _b !== void 0 ? _b : 0) > 1;
425
425
  this.txVersion = walletSupportsVersionedTxns ? 0 : 'legacy';
426
426
  if (includeDelegates && subAccountIds) {
427
427
  throw new Error('Can only pass one of includeDelegates or subAccountIds. If you want to specify subaccount ids for multiple authorities, pass authoritySubaccountMap instead');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drift-labs/sdk",
3
- "version": "2.112.0-beta.1",
3
+ "version": "2.112.0-beta.2",
4
4
  "main": "lib/node/index.js",
5
5
  "types": "lib/node/index.d.ts",
6
6
  "browser": "./lib/browser/index.js",
@@ -769,8 +769,8 @@ export class DriftClient {
769
769
  this.userStatsAccountPublicKey = undefined;
770
770
  this.includeDelegates = includeDelegates ?? false;
771
771
  const walletSupportsVersionedTxns =
772
- //@ts-ignore
773
- this.wallet.supportedTransactionVersions?.size ?? 0 > 1;
772
+ //@ts-expect-error
773
+ (this.wallet.supportedTransactionVersions?.size ?? 0) > 1;
774
774
  this.txVersion = walletSupportsVersionedTxns ? 0 : 'legacy';
775
775
 
776
776
  if (includeDelegates && subAccountIds) {