Socket
Socket
Sign inDemoInstall

@front-finance/link

Package Overview
Dependencies
0
Maintainers
6
Versions
19
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.9 to 1.1.10

cjs/package.json

26

cjs/FrontConnection.js
"use strict";
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

@@ -42,2 +53,3 @@ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }

var event_types_1 = require("./utils/event-types");
var sdk_specs_1 = require("./utils/sdk-specs");
var currentOptions;

@@ -49,3 +61,3 @@ var iframeUrlObject;

function eventsListener(event) {
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
switch (event.data.type) {

@@ -102,6 +114,10 @@ case 'brokerageAccountAccessToken': {

if (currentOptions === null || currentOptions === void 0 ? void 0 : currentOptions.accessTokens) {
(_j = iframeElement().contentWindow) === null || _j === void 0 ? void 0 : _j.postMessage({ type: 'frontAccessTokens', payload: currentOptions.accessTokens }, (iframeUrlObject === null || iframeUrlObject === void 0 ? void 0 : iframeUrlObject.origin) || 'https://web.getfront.com');
(_j = iframeElement().contentWindow) === null || _j === void 0 ? void 0 : _j.postMessage({
type: 'meshSDKSpecs',
payload: __assign({}, sdk_specs_1.sdkSpecs)
}, (iframeUrlObject === null || iframeUrlObject === void 0 ? void 0 : iframeUrlObject.origin) || 'https://web.getfront.com');
(_k = iframeElement().contentWindow) === null || _k === void 0 ? void 0 : _k.postMessage({ type: 'frontAccessTokens', payload: currentOptions.accessTokens }, (iframeUrlObject === null || iframeUrlObject === void 0 ? void 0 : iframeUrlObject.origin) || 'https://web.getfront.com');
}
if (currentOptions === null || currentOptions === void 0 ? void 0 : currentOptions.transferDestinationTokens) {
(_k = iframeElement().contentWindow) === null || _k === void 0 ? void 0 : _k.postMessage({
(_l = iframeElement().contentWindow) === null || _l === void 0 ? void 0 : _l.postMessage({
type: 'frontTransferDestinationTokens',

@@ -111,3 +127,3 @@ payload: currentOptions.transferDestinationTokens

}
(_l = currentOptions === null || currentOptions === void 0 ? void 0 : currentOptions.onEvent) === null || _l === void 0 ? void 0 : _l.call(currentOptions, { type: 'pageLoaded' });
(_m = currentOptions === null || currentOptions === void 0 ? void 0 : currentOptions.onEvent) === null || _m === void 0 ? void 0 : _m.call(currentOptions, { type: 'pageLoaded' });
break;

@@ -117,3 +133,3 @@ }

if ((0, event_types_1.isFrontEventTypeKey)(event.data.type)) {
(_m = currentOptions === null || currentOptions === void 0 ? void 0 : currentOptions.onEvent) === null || _m === void 0 ? void 0 : _m.call(currentOptions, event.data);
(_o = currentOptions === null || currentOptions === void 0 ? void 0 : currentOptions.onEvent) === null || _o === void 0 ? void 0 : _o.call(currentOptions, event.data);
}

@@ -120,0 +136,0 @@ break;

@@ -0,1 +1,12 @@

var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

@@ -39,2 +50,3 @@ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }

import { isFrontEventTypeKey } from './utils/event-types';
import { sdkSpecs } from './utils/sdk-specs';
var currentOptions;

@@ -46,3 +58,3 @@ var iframeUrlObject;

function eventsListener(event) {
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
switch (event.data.type) {

@@ -99,6 +111,10 @@ case 'brokerageAccountAccessToken': {

if (currentOptions === null || currentOptions === void 0 ? void 0 : currentOptions.accessTokens) {
(_j = iframeElement().contentWindow) === null || _j === void 0 ? void 0 : _j.postMessage({ type: 'frontAccessTokens', payload: currentOptions.accessTokens }, (iframeUrlObject === null || iframeUrlObject === void 0 ? void 0 : iframeUrlObject.origin) || 'https://web.getfront.com');
(_j = iframeElement().contentWindow) === null || _j === void 0 ? void 0 : _j.postMessage({
type: 'meshSDKSpecs',
payload: __assign({}, sdkSpecs)
}, (iframeUrlObject === null || iframeUrlObject === void 0 ? void 0 : iframeUrlObject.origin) || 'https://web.getfront.com');
(_k = iframeElement().contentWindow) === null || _k === void 0 ? void 0 : _k.postMessage({ type: 'frontAccessTokens', payload: currentOptions.accessTokens }, (iframeUrlObject === null || iframeUrlObject === void 0 ? void 0 : iframeUrlObject.origin) || 'https://web.getfront.com');
}
if (currentOptions === null || currentOptions === void 0 ? void 0 : currentOptions.transferDestinationTokens) {
(_k = iframeElement().contentWindow) === null || _k === void 0 ? void 0 : _k.postMessage({
(_l = iframeElement().contentWindow) === null || _l === void 0 ? void 0 : _l.postMessage({
type: 'frontTransferDestinationTokens',

@@ -108,3 +124,3 @@ payload: currentOptions.transferDestinationTokens

}
(_l = currentOptions === null || currentOptions === void 0 ? void 0 : currentOptions.onEvent) === null || _l === void 0 ? void 0 : _l.call(currentOptions, { type: 'pageLoaded' });
(_m = currentOptions === null || currentOptions === void 0 ? void 0 : currentOptions.onEvent) === null || _m === void 0 ? void 0 : _m.call(currentOptions, { type: 'pageLoaded' });
break;

@@ -114,3 +130,3 @@ }

if (isFrontEventTypeKey(event.data.type)) {
(_m = currentOptions === null || currentOptions === void 0 ? void 0 : currentOptions.onEvent) === null || _m === void 0 ? void 0 : _m.call(currentOptions, event.data);
(_o = currentOptions === null || currentOptions === void 0 ? void 0 : currentOptions.onEvent) === null || _o === void 0 ? void 0 : _o.call(currentOptions, event.data);
}

@@ -117,0 +133,0 @@ break;

4

package.json
{
"name": "@front-finance/link",
"version": "1.1.9",
"version": "1.1.10",
"description": "Front Finance accounts connection client lib",

@@ -41,2 +41,2 @@ "license": "MIT",

"types": "index.d.ts"
}
}

@@ -5,2 +5,8 @@ # @front-finance/link

### 📌 Deprecation Notice
As of Dec 7, 2023 this package is no longer maintained and has been superseded by a new version. For the latest features, improvements, and bug fixes, please use our updated package: [mesh-web-sdk](https://github.com/FrontFin/mesh-web-sdk).
We encourage all users to migrate to the new package for continued support and updates.
### Install

@@ -7,0 +13,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc