
Product
Introducing License Overlays: Smarter License Management for Real-World Code
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
@lwrjs/shared-utils
Advanced tools
This package contains util code to be shared across @lwrjs packages. The code can be used by node modules and by client modules, if it's properly exposed from lwc config.
This package contains util code to be shared across @lwrjs packages. The code can be used by node modules and by client modules, if it's properly exposed from lwc config.
The observable util is an example of code that can be used both on the client side and on the node server side.
import { createObservable } from '@lwrjs/shared-utils';
const observable = createObservable();
Consuming package lwc config
{
"modules": [
{
"npm": "@lwrjs/shared-utils"
}
]
}
Module code
import { createObservable } from 'lwr/observable';
const observable = createObservable();
FAQs
Did you know?
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.
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.
Product
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.