New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

@locker/internal-policy

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@locker/internal-policy

Lightning Web Security trusted types package.

  • 0.19.10
  • npm
  • Socket score

Version published
Weekly downloads
2.1K
decreased by-13.3%
Maintainers
8
Weekly downloads
 
Created

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

FAQs

Package last updated on 27 Jun 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