🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@phase2/outline-include

Package Overview
Dependencies
Maintainers
10
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@phase2/outline-include

The Outline Components for the include component

latest
Source
npmnpm
Version
0.1.5
Version published
Maintainers
10
Created
Source

outline-include

Properties

PropertyAttributeTypeDefaultDescription
allowScriptsallow-scriptsbooleanfalseAllows included scripts to be executed. You must ensure the content you're including is trusted, otherwise this
option can lead to XSS vulnerabilities in your app!
modemode"cors" | "no-cors" | "same-origin""cors"The fetch mode to use.
srcsrcstringThe location of the HTML file to include.

WARNING: Be sure you trust the content you are including as it will be executed as code and can result in XSS attacks.

Methods

MethodType
executeScript(script: HTMLScriptElement): void
handleSrcChange(): Promise<void>

Events

EventTypeDescription
outline-error{ status: number }Emitted when the included file fails to load due to an error.
outline-loadEmitted when the included file is loaded.

Keywords

outline

FAQs

Package last updated on 23 Aug 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