New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@source-health/sourcebridge

Package Overview
Dependencies
Maintainers
5
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@source-health/sourcebridge

Official SDK for Source Health iframe plugins.

unpublished
latest
Source
npmnpm
Version
0.0.1
Version published
Weekly downloads
0
Maintainers
5
Weekly downloads
 
Created
Source

SourceBridge Library

:bangbang:This SDK is still in beta, and may change significantly before its public release.

The SourceBridge library is a required dependency for customer-built 'frame' plugins that run within the main Source Health web UI.

This SDK is written in TypeScript and compiled to ES6.

Getting Started

Getting started with the Source Health client is easy. First, install the package via NPM:

yarn add @source-health/sourcebridge # or npm install @source-health/sourcebridge

Then, import the SourceBridge API:

import { SourceBridge } from '@source-health/sourcebridge'

Subscribe to context updates from the parent window. Note: after rendering for the first time, your application must call SourceBridge.ready() in order to clear the loading state and display the plugin.

 await SourceBridge.onContextUpdate(async (context) => {
  // Handle the context, set and render your application
  await doSomeStuff(context.member)


  // Call ready() to clear the loading state for the plugin
  SourceBridge.ready()
})

And, finally, kick off the handshake with the parent window (which will lead to the context callback being run):

await SourceBridge.init()

Plugin Developer Documentation

Developer documentation for plugin development will be published shortly. In the meantime, an example plugin is available at source-health/source-demo-frame-plugin.

Keywords

Source

FAQs

Package last updated on 30 Dec 2021

Did you know?

Socket

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