Socket
Socket
Sign inDemoInstall

openfin-browser-adapter

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    openfin-browser-adapter

browser mockup adapter for openfin js api


Version published
Weekly downloads
13
decreased by-7.14%
Maintainers
1
Install size
93.6 kB
Created
Weekly downloads
 

Changelog

Source

[1.0.0] 2019-06-16

  • Support openfin api v2 js
  • Support openfin runtime up to v10.66.41.18

Readme

Source

Openfin browser adapter

version license

Openfin browser adapter is a set of mockup openfin apis in browser environment to assist openfin based app developing/testing.

  • Written in typescript
  • Support openfin js api v2 & v1
  • Support openfin runtime up to v10.66.41.18

Installation

    npm i openfin-browser-adapter 
    or 
    yarn add openfin-browser-adapter

Usage


    import { BrowserAdapter } from 'openfin-browser-adapter'
    
    // **************************************************************
    // check whether fin handler is defined or not
    // if not it means we are at browser environment,
    // thus use browser-adapter instead to mockup openfin js apis
    if(!window.fin){
        window.fin = new BrowserAdapter({
            finUuid:process.env.REACT_APP_FIN_UUID,     // fin app uuid injected via dotenv
            silentMode:false,                           // log function calls to console or not
        });
    }

apis supported:

The author is lazy and he won't complete this section till next release

Keywords

FAQs

Last updated on 16 Jun 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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