@portal-hq/web 1.0.1 → 1.0.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.
@@ -144,16 +144,16 @@ class Portal {
144
144
  return this.recoverWallet(cipherText, backupMethod, backupConfigs, progress);
145
145
  });
146
146
  }
147
- ejectPrivateKey(clientBackupCiphertext, backupMethod, backupConfigs, orgBackupShare) {
147
+ ejectPrivateKey(clientBackupCipherText, backupMethod, backupConfigs, orgBackupShare) {
148
148
  return __awaiter(this, void 0, void 0, function* () {
149
- if (clientBackupCiphertext === '') {
150
- throw new Error('clientBackupCiphertext cannot be empty string.');
149
+ if (clientBackupCipherText === '') {
150
+ throw new Error('clientBackupCipherText cannot be empty string.');
151
151
  }
152
152
  if (orgBackupShare === '') {
153
153
  throw new Error('orgBackupShare cannot be empty string.');
154
154
  }
155
155
  const privateKey = yield this.mpc.eject({
156
- cipherText: clientBackupCiphertext,
156
+ cipherText: clientBackupCipherText,
157
157
  backupMethod,
158
158
  backupConfigs,
159
159
  organizationBackupShare: orgBackupShare,
@@ -12,7 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.MpcErrorCodes = exports.MpcError = void 0;
13
13
  const errors_1 = require("./errors");
14
14
  const index_1 = require("../index");
15
- const WEB_SDK_VERSION = '1.0.1';
15
+ const WEB_SDK_VERSION = '1.0.2';
16
16
  class Mpc {
17
17
  constructor({ portal }) {
18
18
  this.configureIframe = () => {
package/lib/esm/index.js CHANGED
@@ -138,16 +138,16 @@ class Portal {
138
138
  return this.recoverWallet(cipherText, backupMethod, backupConfigs, progress);
139
139
  });
140
140
  }
141
- ejectPrivateKey(clientBackupCiphertext, backupMethod, backupConfigs, orgBackupShare) {
141
+ ejectPrivateKey(clientBackupCipherText, backupMethod, backupConfigs, orgBackupShare) {
142
142
  return __awaiter(this, void 0, void 0, function* () {
143
- if (clientBackupCiphertext === '') {
144
- throw new Error('clientBackupCiphertext cannot be empty string.');
143
+ if (clientBackupCipherText === '') {
144
+ throw new Error('clientBackupCipherText cannot be empty string.');
145
145
  }
146
146
  if (orgBackupShare === '') {
147
147
  throw new Error('orgBackupShare cannot be empty string.');
148
148
  }
149
149
  const privateKey = yield this.mpc.eject({
150
- cipherText: clientBackupCiphertext,
150
+ cipherText: clientBackupCipherText,
151
151
  backupMethod,
152
152
  backupConfigs,
153
153
  organizationBackupShare: orgBackupShare,
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  };
10
10
  import { PortalMpcError } from './errors';
11
11
  import { BackupMethods } from '../index';
12
- const WEB_SDK_VERSION = '1.0.1';
12
+ const WEB_SDK_VERSION = '1.0.2';
13
13
  class Mpc {
14
14
  constructor({ portal }) {
15
15
  this.configureIframe = () => {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Portal MPC Support for Web",
4
4
  "author": "Portal Labs, Inc.",
5
5
  "homepage": "https://portalhq.io/",
6
- "version": "1.0.1",
6
+ "version": "1.0.2",
7
7
  "license": "MIT",
8
8
  "main": "lib/commonjs/index",
9
9
  "module": "lib/esm/index",
package/src/index.ts CHANGED
@@ -220,13 +220,13 @@ class Portal {
220
220
  }
221
221
 
222
222
  public async ejectPrivateKey(
223
- clientBackupCiphertext: string,
223
+ clientBackupCipherText: string,
224
224
  backupMethod: BackupMethods,
225
225
  backupConfigs: BackupConfigs,
226
226
  orgBackupShare: string,
227
227
  ): Promise<string> {
228
- if (clientBackupCiphertext === '') {
229
- throw new Error('clientBackupCiphertext cannot be empty string.')
228
+ if (clientBackupCipherText === '') {
229
+ throw new Error('clientBackupCipherText cannot be empty string.')
230
230
  }
231
231
 
232
232
  if (orgBackupShare === '') {
@@ -234,7 +234,7 @@ class Portal {
234
234
  }
235
235
 
236
236
  const privateKey = await this.mpc.eject({
237
- cipherText: clientBackupCiphertext,
237
+ cipherText: clientBackupCipherText,
238
238
  backupMethod,
239
239
  backupConfigs,
240
240
  organizationBackupShare: orgBackupShare,
package/src/mpc/index.ts CHANGED
@@ -25,7 +25,7 @@ import type {
25
25
  WorkerResult,
26
26
  } from '../../types'
27
27
 
28
- const WEB_SDK_VERSION = '1.0.1'
28
+ const WEB_SDK_VERSION = '1.0.2'
29
29
 
30
30
  class Mpc {
31
31
  public iframe?: HTMLIFrameElement
package/types.d.ts CHANGED
@@ -22,6 +22,7 @@ export type ValidRpcErrorCodes = 4001 | 4100 | 4200 | 4900 | 4901
22
22
  // Interfaces
23
23
 
24
24
  export interface FeatureFlags {
25
+ isMultiBackupEnabled?: boolean
25
26
  optimized: boolean = false
26
27
  }
27
28