Security News
NIST Misses 2024 Deadline to Clear NVD Backlog
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
@getflip/bridge
Advanced tools
The Flip Bridge handles communication between your embeddable apps and the Flip App or Flip Admin Console.
Contents
npm install --save @getflip/bridge
# or
yarn add @getflip/bridge
The library exposes a set of functions and listeners you can use to communicate with the Flip App and Flip Admin Console (host app for short).
getAvailableLangs
Get all available languages of the host app.
Returns string[]
Example
import { getAvailableLangs } from "@getflip/bridge";
const availableLanguages = await getAvailableLangs(); // e.g. ['de', 'en', 'fr', …]
getLang
Get the current language of the host app.
Returns string
Example
import { getLang } from "@getflip/bridge";
const currentLanguage = await getLang(); // e.g. 'en'
navigate
Navigate to a specific route.
Returns boolean
Example
import { navigate } from "@getflip/bridge";
await navigate("/my-app/settings");
getTheme
Get the current theme.
Returns 'light' | 'dark'
Example
import { getTheme } from "@getflip/bridge";
const currentTheme = await getTheme(); // e.g. 'light'
Start the compiler in watch mode for local development:
yarn
yarn dev
Production builds and releases are managed via our Github workflows. Make sure
to create a Changeset using yarn changeset
if you want to trigger a new
release.
FAQs
Flip JavaScript Bridge for external integrations.
The npm package @getflip/bridge receives a total of 673 weekly downloads. As such, @getflip/bridge popularity was classified as not popular.
We found that @getflip/bridge demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
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.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.