wallaby-cash 2.3.8 → 2.3.9
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/helpers/omit.d.ts +1 -0
- package/dist/index.cjs.js +11 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +10 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +10 -2
- package/dist/index.js.map +1 -1
- package/dist/package.json +6 -5
- package/dist/types/wallet.d.ts +1 -0
- package/package.json +6 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function omit<T extends object, K extends keyof T>(obj: T | null | undefined, keys: K[]): Omit<T, K>;
|
package/dist/index.cjs.js
CHANGED
|
@@ -7,7 +7,6 @@ const bip39 = require('bip39');
|
|
|
7
7
|
const log = require('loglevel');
|
|
8
8
|
const cryptoJs = require('crypto-js');
|
|
9
9
|
const jwtDecode = require('jwt-decode');
|
|
10
|
-
const lodash = require('lodash');
|
|
11
10
|
const WebAuthn = require('@simplewebauthn/browser');
|
|
12
11
|
const jsBase64 = require('js-base64');
|
|
13
12
|
const uuid = require('uuid');
|
|
@@ -601,7 +600,7 @@ const MASTER_ENCRYPTION_KEY = '9fa9d3f3c77c20d3a50a08e5299644be29f6e6206ef3479fe
|
|
|
601
600
|
{ type: 'public-key', alg: exports.PublicKeyCredentialAlgorithm.ES256 },
|
|
602
601
|
];
|
|
603
602
|
const isWeb = typeof window !== 'undefined' && typeof document !== 'undefined';
|
|
604
|
-
const currentPackageVersion = "2.3.
|
|
603
|
+
const currentPackageVersion = "2.3.9" ;
|
|
605
604
|
|
|
606
605
|
/**
|
|
607
606
|
* Storage keys adapter for Storage interface across different platforms.
|
|
@@ -7400,6 +7399,13 @@ const SwapRoutes = {
|
|
|
7400
7399
|
},
|
|
7401
7400
|
};
|
|
7402
7401
|
|
|
7402
|
+
function omit(obj, keys) {
|
|
7403
|
+
if (!obj)
|
|
7404
|
+
return {};
|
|
7405
|
+
const keysSet = new Set(keys);
|
|
7406
|
+
return Object.fromEntries(Object.entries(obj).filter(([k]) => !keysSet.has(k)));
|
|
7407
|
+
}
|
|
7408
|
+
|
|
7403
7409
|
/* eslint-disable no-useless-catch */
|
|
7404
7410
|
/**
|
|
7405
7411
|
* Web Authenticator Implementation
|
|
@@ -7701,7 +7707,7 @@ class PasskeyService {
|
|
|
7701
7707
|
errorCode: exports.ErrorResponseCodes.sdk_passkey_challenge_unavailable,
|
|
7702
7708
|
});
|
|
7703
7709
|
const parsedOptions = this.preparePasskeyRequestOptions(challengeResponse.authenticationOptions);
|
|
7704
|
-
const updatedOptions = Object.assign(Object.assign({}, challengeResponse.authenticationOptions), { extensions: Object.assign(Object.assign({},
|
|
7710
|
+
const updatedOptions = Object.assign(Object.assign({}, challengeResponse.authenticationOptions), { extensions: Object.assign(Object.assign({}, omit(parsedOptions.extensions, 'credProps')), { prf: {
|
|
7705
7711
|
eval: {
|
|
7706
7712
|
first: (_b = (_a = parsedOptions.extensions.prf) === null || _a === void 0 ? void 0 : _a.eval) === null || _b === void 0 ? void 0 : _b.first,
|
|
7707
7713
|
},
|
|
@@ -8569,6 +8575,7 @@ class WalletHandlersService extends Base {
|
|
|
8569
8575
|
});
|
|
8570
8576
|
const importWalletPayload = {
|
|
8571
8577
|
reference: uuid.v4(),
|
|
8578
|
+
walletId: importWalletInput.walletId,
|
|
8572
8579
|
message,
|
|
8573
8580
|
signature,
|
|
8574
8581
|
encryptedSeed: readyForTransportSeedPhrase,
|
|
@@ -10260,6 +10267,7 @@ class WalletService extends Base {
|
|
|
10260
10267
|
publicKey: clientPublicKey,
|
|
10261
10268
|
privateKey: decryptedClientAuthPrivKey,
|
|
10262
10269
|
}, {
|
|
10270
|
+
walletId: input.walletId,
|
|
10263
10271
|
authenticationOptions: authentication,
|
|
10264
10272
|
seedPhrase: decryptedSeedPhrase,
|
|
10265
10273
|
storeSeedPhrase: false,
|