wallaby-cash 2.2.3 → 2.2.5

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.
@@ -114,7 +114,7 @@ export declare class Cipher {
114
114
  * @param {string} deviceKeyPair - The public key to encrypt the data with.
115
115
  * @returns {Promise<Encrypted>} The encrypted data ready for storage.
116
116
  */
117
- prepareDecryptedDataForStorage({ decryptedData, credentialsKeyPair, deviceKeyPair, }: {
117
+ doubleEncrypt({ decryptedData, credentialsKeyPair, deviceKeyPair, }: {
118
118
  decryptedData: string;
119
119
  credentialsKeyPair: {
120
120
  publicKey: string;
@@ -44,3 +44,4 @@ export declare const env: {
44
44
  isServer: boolean;
45
45
  isWeb: boolean;
46
46
  };
47
+ export declare const currentPackageVersion: string;
@@ -5,6 +5,8 @@ export declare class WalletService extends Base {
5
5
  private authService;
6
6
  private handlers;
7
7
  private passkeyService;
8
+ private passwordResetAttempts;
9
+ private migrationAttempts;
8
10
  constructor(config: WallabyConfig);
9
11
  /**
10
12
  * @public
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wallaby-cash",
3
- "version": "2.2.3",
3
+ "version": "2.2.5",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git@github.com:WALLABY-WaaS/wallaby-sdk-js.git"
@@ -64,13 +64,14 @@
64
64
  "@rollup/plugin-commonjs": "^26.0.1",
65
65
  "@rollup/plugin-json": "^6.1.0",
66
66
  "@rollup/plugin-node-resolve": "^15.2.3",
67
+ "@rollup/plugin-replace": "^6.0.3",
67
68
  "@rollup/plugin-terser": "^0.4.4",
68
69
  "@rollup/plugin-typescript": "^11.1.6",
69
70
  "@semantic-release/changelog": "^6.0.3",
70
71
  "@semantic-release/commit-analyzer": "^9.0.2",
71
72
  "@semantic-release/git": "^10.0.1",
72
73
  "@semantic-release/github": "^8.0.7",
73
- "@semantic-release/npm": "^12.0.0",
74
+ "@semantic-release/npm": "^12.0.2",
74
75
  "@semantic-release/release-notes-generator": "^11.0.1",
75
76
  "@size-limit/preset-small-lib": "^11.2.0",
76
77
  "@types/crypto-js": "^4.2.2",
@@ -117,6 +118,7 @@
117
118
  "uuid": "^10.0.0"
118
119
  },
119
120
  "overrides": {
121
+ "glob": "^10.5.0",
120
122
  "js-yaml": "^4.1.1",
121
123
  "pbkdf2": "^3.1.3",
122
124
  "esbuild": "^0.25.0",
@@ -33,6 +33,7 @@ export declare enum ErrorResponseCodes {
33
33
  'sdk_jwt_invalid' = "sdk_jwt_invalid",
34
34
  'sdk_jwt_expired' = "sdk_jwt_expired",
35
35
  'sdk_unknown_error' = "sdk_unknown_error",
36
+ 'sdk_too_many_requests' = "sdk_too_many_requests",
36
37
  'sdk_seed_phrase_decryption_failed' = "sdk_seed_phrase_decryption_failed",
37
38
  'sdk_key_shares_not_found' = "sdk_key_shares_not_found",
38
39
  'sdk_key_share_decryption_failed' = "sdk_key_share_decryption_failed",
@@ -55,5 +55,7 @@ export declare enum V2KeyNames {
55
55
  EncryptedStandardSeedPhrase = "encrypted-standard-seedPhrase",
56
56
  PasskeyCredential = "pass-key-credential",
57
57
  PrimaryDeviceKeyShare = "primary-device-key-share",
58
- WallabyAuthPubKey = "wallaby-auth-pub-key"
58
+ WallabyAuthPubKey = "wallaby-auth-pub-key",
59
+ MigrationVersion = "wsdk_migrated_with_version",
60
+ LastMigratedAt = "wsdk_last_migrated_at"
59
61
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wallaby-cash",
3
- "version": "2.2.3",
3
+ "version": "2.2.5",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git@github.com:WALLABY-WaaS/wallaby-sdk-js.git"
@@ -64,13 +64,14 @@
64
64
  "@rollup/plugin-commonjs": "^26.0.1",
65
65
  "@rollup/plugin-json": "^6.1.0",
66
66
  "@rollup/plugin-node-resolve": "^15.2.3",
67
+ "@rollup/plugin-replace": "^6.0.3",
67
68
  "@rollup/plugin-terser": "^0.4.4",
68
69
  "@rollup/plugin-typescript": "^11.1.6",
69
70
  "@semantic-release/changelog": "^6.0.3",
70
71
  "@semantic-release/commit-analyzer": "^9.0.2",
71
72
  "@semantic-release/git": "^10.0.1",
72
73
  "@semantic-release/github": "^8.0.7",
73
- "@semantic-release/npm": "^12.0.0",
74
+ "@semantic-release/npm": "^12.0.2",
74
75
  "@semantic-release/release-notes-generator": "^11.0.1",
75
76
  "@size-limit/preset-small-lib": "^11.2.0",
76
77
  "@types/crypto-js": "^4.2.2",
@@ -117,6 +118,7 @@
117
118
  "uuid": "^10.0.0"
118
119
  },
119
120
  "overrides": {
121
+ "glob": "^10.5.0",
120
122
  "js-yaml": "^4.1.1",
121
123
  "pbkdf2": "^3.1.3",
122
124
  "esbuild": "^0.25.0",