@phase2/outline-include
TypeScript icon, indicating that this package has built-in type declarations

0.1.5 • Public • Published

outline-include

Properties

Property Attribute Type Default Description
allowScripts allow-scripts boolean false Allows 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!
mode mode "cors" | "no-cors" | "same-origin" "cors" The fetch mode to use.
src src string The 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

Method Type
executeScript (script: HTMLScriptElement): void
handleSrcChange (): Promise<void>

Events

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

Package Sidebar

Install

npm i @phase2/outline-include

Weekly Downloads

39

Version

0.1.5

License

BSD-3-Clause

Unpacked Size

254 kB

Total Files

9

Last publish

Collaborators

  • nadavoid
  • grshane
  • dmuzyka
  • mkochendorfer
  • pschuelke
  • yuginaili
  • cclarkdev
  • febbraro
  • himerus
  • shaal