@locker/internal-policy
TypeScript icon, indicating that this package has built-in type declarations

0.21.5 • Public • Published

@locker/internal-policy

Lightning Web Security Trusted LWS Policy

This package is meant to be only usable internally by @locker packages.

Signing Example:

  import { lwsInternalPolicy } from '@locker/internal-policy'

  script.src = lwsInternalPolicy.createScriptURL('...');

NOTE: if polyfills are needed to support additional trustedTypes functionality, such as getAttributeType or getPropertyType, the code at https://github.com/w3c/trusted-types/blob/main/src/trustedtypes.js is a great resource to get started.

Readme

Keywords

none

Package Sidebar

Install

npm i @locker/internal-policy

Weekly Downloads

651

Version

0.21.5

License

SEE LICENSE IN LICENSE.txt

Unpacked Size

32.8 kB

Total Files

7

Last publish

Collaborators

  • achabot
  • garychangsf
  • mjasso
  • caridy
  • jdalton
  • t.lau
  • dejang
  • rwaldron