npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

@locker/internal-policy

0.26.2

@mjasso

npmSnykSocket
Downloads:57499
$ npm install @locker/internal-policy
DailyWeeklyMonthlyYearly

@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.