Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@seibert/spacecraft-bridge

Package Overview
Dependencies
Maintainers
4
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@seibert/spacecraft-bridge

Handles communication between spacecraft and embedded iframes

  • 1.0.0
  • unpublished
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
4
Weekly downloads
 
Created
Source

Spacecraft Bridge

Usage

Validate if in spacecraft

isEmbeddedInSpacecraft: () => Promise<boolean>

Call function isEmbeddedInSpacecraft, which returns true if currently in spacecraft

import { isEmbeddedInSpacecraft } from "@seibert/spacecraft-bridge";
(async () => {
    const isEmbedded = await isEmbeddedInSpacecraft();
    console.log("Is embedded in spacecraft?", isEmbedded);
})()

Check if spacecraft handles navigation

onNavigationToConfluenceContent: ({ contentId, spaceKey }: { contentId: string; spaceKey?: string }) => Promise<{ isResponsible: boolean }>

Call function onNavigationToConfluenceContent with contentId and spaceKey of the Space to navigate to.

import { onNavigationToConfluenceContent } from "@seibert/spacecraft-bridge";
onNavigationToConfluenceContent({
        contentId: "1933581",
        spaceKey: "Duck",
    }).then((res) => console.log("RESULT NAV: ", res.isResponsible));

FAQs

Package last updated on 25 Jul 2023

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc