@portal-hq/web 0.1.3-rce → 1.0.0

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.
@@ -38,7 +38,7 @@ class Portal {
38
38
  if (gdrive) {
39
39
  this.gDriveConfig = gdrive;
40
40
  }
41
- else if (passkey) {
41
+ if (passkey) {
42
42
  this.passkeyConfig = passkey;
43
43
  }
44
44
  this.mpc = new mpc_1.default({
@@ -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 = '0.1.3-rce';
15
+ const WEB_SDK_VERSION = '1.0.0';
16
16
  class Mpc {
17
17
  constructor({ portal }) {
18
18
  this.configureIframe = () => {
package/lib/esm/index.js CHANGED
@@ -32,7 +32,7 @@ class Portal {
32
32
  if (gdrive) {
33
33
  this.gDriveConfig = gdrive;
34
34
  }
35
- else if (passkey) {
35
+ if (passkey) {
36
36
  this.passkeyConfig = passkey;
37
37
  }
38
38
  this.mpc = new Mpc({
@@ -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 = '0.1.3-rce';
12
+ const WEB_SDK_VERSION = '1.0.0';
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": "0.1.3-rce",
6
+ "version": "1.0.0",
7
7
  "license": "MIT",
8
8
  "main": "lib/commonjs/index",
9
9
  "module": "lib/esm/index",
@@ -46,4 +46,4 @@
46
46
  "webpack": "^5.87.0",
47
47
  "webpack-cli": "^5.1.4"
48
48
  }
49
- }
49
+ }
package/src/index.ts CHANGED
@@ -72,7 +72,8 @@ class Portal {
72
72
 
73
73
  if (gdrive) {
74
74
  this.gDriveConfig = gdrive
75
- } else if (passkey) {
75
+ }
76
+ if (passkey) {
76
77
  this.passkeyConfig = passkey
77
78
  }
78
79
 
package/src/mpc/index.ts CHANGED
@@ -26,7 +26,7 @@ import type {
26
26
  WorkerResult,
27
27
  } from '../../types'
28
28
 
29
- const WEB_SDK_VERSION = '0.1.3-rce'
29
+ const WEB_SDK_VERSION = '1.0.0'
30
30
 
31
31
  class Mpc {
32
32
  public iframe?: HTMLIFrameElement