@portal-hq/web 0.0.5 → 0.0.6

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.
@@ -283,7 +283,7 @@ class Portal {
283
283
  }
284
284
  else if (typeof this.gatewayConfig === 'object' &&
285
285
  // eslint-disable-next-line no-prototype-builtins
286
- this.gatewayConfig.hasOwnProperty(this.chainId)) {
286
+ !this.gatewayConfig.hasOwnProperty(this.chainId)) {
287
287
  // If there's no explicit mapping for the current chainId, error out
288
288
  throw new Error(`[PortalProvider] No RPC endpoint configured for chainId: ${this.chainId}`);
289
289
  }
@@ -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.0.5';
15
+ const WEB_SDK_VERSION = '0.0.6';
16
16
  class Mpc {
17
17
  constructor({ portal }) {
18
18
  this.configureIframe = () => {
package/lib/esm/index.js CHANGED
@@ -277,7 +277,7 @@ class Portal {
277
277
  }
278
278
  else if (typeof this.gatewayConfig === 'object' &&
279
279
  // eslint-disable-next-line no-prototype-builtins
280
- this.gatewayConfig.hasOwnProperty(this.chainId)) {
280
+ !this.gatewayConfig.hasOwnProperty(this.chainId)) {
281
281
  // If there's no explicit mapping for the current chainId, error out
282
282
  throw new Error(`[PortalProvider] No RPC endpoint configured for chainId: ${this.chainId}`);
283
283
  }
@@ -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.0.5';
12
+ const WEB_SDK_VERSION = '0.0.6';
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.0.5",
6
+ "version": "0.0.6",
7
7
  "license": "MIT",
8
8
  "main": "lib/commonjs/index",
9
9
  "module": "lib/esm/index",
package/src/index.ts CHANGED
@@ -353,7 +353,7 @@ class Portal {
353
353
  } else if (
354
354
  typeof this.gatewayConfig === 'object' &&
355
355
  // eslint-disable-next-line no-prototype-builtins
356
- this.gatewayConfig.hasOwnProperty(this.chainId)
356
+ !this.gatewayConfig.hasOwnProperty(this.chainId)
357
357
  ) {
358
358
  // If there's no explicit mapping for the current chainId, error out
359
359
  throw new Error(
package/src/mpc/index.ts CHANGED
@@ -24,7 +24,7 @@ import type {
24
24
  WorkerResult,
25
25
  } from '../../types'
26
26
 
27
- const WEB_SDK_VERSION = '0.0.5'
27
+ const WEB_SDK_VERSION = '0.0.6'
28
28
 
29
29
  class Mpc {
30
30
  public iframe?: HTMLIFrameElement