wallaby-cash 2.0.1-alpha.36 → 2.0.1-alpha.37

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.cjs.js CHANGED
@@ -4988,10 +4988,10 @@ class StorageService {
4988
4988
  if (!(options === null || options === void 0 ? void 0 : options.walletId)) {
4989
4989
  throw new Error(`A walletId is required to fetch: ${key}`);
4990
4990
  }
4991
- storageKey = `wsdk:v2:${this.shortenedEnv}:${key}:${this.userId}:${options.walletId}`;
4991
+ storageKey = `wsdk_v2_${this.shortenedEnv}_${key}_${this.userId}_${options.walletId}`;
4992
4992
  }
4993
4993
  else {
4994
- storageKey = `wsdk:v2:${this.shortenedEnv}:${key}:${this.userId}`;
4994
+ storageKey = `wsdk_v2_${this.shortenedEnv}_${key}_${this.userId}`;
4995
4995
  }
4996
4996
  const item = await this.getItem(storageKey);
4997
4997
  if (!item) {
@@ -5021,10 +5021,10 @@ class StorageService {
5021
5021
  if (!(options === null || options === void 0 ? void 0 : options.walletId)) {
5022
5022
  throw new Error(`A walletId is required to save: ${key}`);
5023
5023
  }
5024
- storageKey = `wsdk:v2:${this.shortenedEnv}:${key}:${this.userId}:${options.walletId}`;
5024
+ storageKey = `wsdk_v2_${this.shortenedEnv}_${key}_${this.userId}_${options.walletId}`;
5025
5025
  }
5026
5026
  else {
5027
- storageKey = `wsdk:v2:${this.shortenedEnv}:${key}:${this.userId}`;
5027
+ storageKey = `wsdk_v2_${this.shortenedEnv}_${key}_${this.userId}`;
5028
5028
  }
5029
5029
  let valueToStore;
5030
5030
  if (this._keysProtectedByMasterKey.includes(key)) {
@@ -5045,10 +5045,10 @@ class StorageService {
5045
5045
  if (!(options === null || options === void 0 ? void 0 : options.walletId)) {
5046
5046
  throw new Error(`A walletId is required to delete: ${key}`);
5047
5047
  }
5048
- storageKey = `wsdk:v2:${this.shortenedEnv}:${key}:${this.userId}:${options.walletId}`;
5048
+ storageKey = `wsdk_v2_${this.shortenedEnv}_${key}_${this.userId}_${options.walletId}`;
5049
5049
  }
5050
5050
  else {
5051
- storageKey = `wsdk:v2:${this.shortenedEnv}:${key}:${this.userId}`;
5051
+ storageKey = `wsdk_v2_${this.shortenedEnv}_${key}_${this.userId}`;
5052
5052
  }
5053
5053
  return await this.removeItem(storageKey);
5054
5054
  }
@@ -5988,6 +5988,7 @@ class Authenticator {
5988
5988
  */
5989
5989
  handlePasskeyError(error) {
5990
5990
  logger.error('SDK::Authenticator::handlePasskeyError', error);
5991
+ console.error('SDK::Authenticator::handlePasskeyError::code', error === null || error === void 0 ? void 0 : error.code);
5991
5992
  if (error instanceof WebAuthn__namespace.WebAuthnError) {
5992
5993
  logger.debug('SDK::Authenticator::handlePasskeyError - WebAuthnError', error);
5993
5994
  return this.throwPasskeyError({ errorCode: error.code });