wallaby-cash 2.3.8 → 2.3.10

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/dist/index.esm.js CHANGED
@@ -3,7 +3,6 @@ import * as bip39 from 'bip39';
3
3
  import log from 'loglevel';
4
4
  import { AES, enc } from 'crypto-js';
5
5
  import { jwtDecode } from 'jwt-decode';
6
- import { omit } from 'lodash';
7
6
  import * as WebAuthn from '@simplewebauthn/browser';
8
7
  import { atob, toUint8Array } from 'js-base64';
9
8
  import { v4 } from 'uuid';
@@ -572,7 +571,7 @@ const MASTER_ENCRYPTION_KEY = '9fa9d3f3c77c20d3a50a08e5299644be29f6e6206ef3479fe
572
571
  { type: 'public-key', alg: PublicKeyCredentialAlgorithm.ES256 },
573
572
  ];
574
573
  const isWeb = typeof window !== 'undefined' && typeof document !== 'undefined';
575
- const currentPackageVersion = "2.3.8" ;
574
+ const currentPackageVersion = "2.3.10" ;
576
575
 
577
576
  /**
578
577
  * Storage keys adapter for Storage interface across different platforms.
@@ -7371,6 +7370,13 @@ const SwapRoutes = {
7371
7370
  },
7372
7371
  };
7373
7372
 
7373
+ function omit(obj, keys) {
7374
+ if (!obj)
7375
+ return {};
7376
+ const keysSet = new Set(keys);
7377
+ return Object.fromEntries(Object.entries(obj).filter(([k]) => !keysSet.has(k)));
7378
+ }
7379
+
7374
7380
  /* eslint-disable no-useless-catch */
7375
7381
  /**
7376
7382
  * Web Authenticator Implementation
@@ -8540,6 +8546,7 @@ class WalletHandlersService extends Base {
8540
8546
  });
8541
8547
  const importWalletPayload = {
8542
8548
  reference: v4(),
8549
+ walletId: importWalletInput.walletId,
8543
8550
  message,
8544
8551
  signature,
8545
8552
  encryptedSeed: readyForTransportSeedPhrase,
@@ -10231,6 +10238,7 @@ class WalletService extends Base {
10231
10238
  publicKey: clientPublicKey,
10232
10239
  privateKey: decryptedClientAuthPrivKey,
10233
10240
  }, {
10241
+ walletId: input.walletId,
10234
10242
  authenticationOptions: authentication,
10235
10243
  seedPhrase: decryptedSeedPhrase,
10236
10244
  storeSeedPhrase: false,
@@ -11396,6 +11404,9 @@ class System extends Base {
11396
11404
  if ((options === null || options === void 0 ? void 0 : options.chainName) !== undefined) {
11397
11405
  queryParams.chainName = options.chainName;
11398
11406
  }
11407
+ if ((options === null || options === void 0 ? void 0 : options.contractAddress) !== undefined) {
11408
+ queryParams.contractAddress = options.contractAddress;
11409
+ }
11399
11410
  const response = await this.request(SystemRoutes.getSupportedTokens, {
11400
11411
  queryParams: Object.keys(queryParams).length > 0 ? queryParams : undefined,
11401
11412
  });