Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@locker/internal-policy

Package Overview
Dependencies
Maintainers
8
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@locker/internal-policy

Lightning Web Security trusted types package.

latest
npmnpm
Version
0.25.7
Version published
Maintainers
8
Created
Source

@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 16 Sep 2025

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