
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@lightning-out/application
Advanced tools
Lightning Out 2.0 for Salesforce - embed Lightning components in any web application.
npm install @salesforce/lightning-out
This package is distributed in multiple formats:
import { initialize } from '@salesforce/lightning-out';
const { initialize } = require('@salesforce/lightning-out');
<script src="https://unpkg.com/@salesforce/lightning-out/dist/index.umd.min.js"></script>
This package supports tree shaking, allowing bundlers to eliminate unused code for smaller bundle sizes.
import { LOApplication, LOComponent } from '@salesforce/lightning-out';
// Create and configure a Lightning Out application
const app = new LOApplication();
app.setAttribute('endpoint', 'https://your-salesforce-community-url');
app.setAttribute('namespace', 'your-namespace');
document.body.appendChild(app);
// Create a Lightning component with attributes
const component = new LOComponent();
component.setAttribute('name', 'namespace:componentName');
component.setAttribute('attribute1', 'value1');
component.setAttribute('attribute2', 'value2');
app.appendChild(component);
// Create Lightning Out application using custom elements
const app = document.createElement('lightning-out-application');
app.setAttribute('endpoint', 'https://your-salesforce-community-url');
app.setAttribute('namespace', 'your-namespace');
// Add to a specific target element
document.getElementById('target-element-id').appendChild(app);
// Create a component inside the application
const component = document.createElement('lightning-out-component');
component.setAttribute('name', 'namespace:componentName');
component.setAttribute('attribute1', 'value1');
app.appendChild(component);
See the full documentation at https://developer.salesforce.com/docs/lightning-out
FAQs
Lightning Out 2.0 for Salesforce
The npm package @lightning-out/application receives a total of 108 weekly downloads. As such, @lightning-out/application popularity was classified as not popular.
We found that @lightning-out/application demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
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.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.