Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@locker/internal-policy

Package Overview
Dependencies
Maintainers
0
Versions
62
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.

  • 0.23.9
  • npm
  • Socket score

Version published
Weekly downloads
1.5K
decreased by-1.73%
Maintainers
0
Weekly downloads
 
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 31 Dec 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc