Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
@microsoft/fast-element
Advanced tools
The fast-element
library is a lightweight means to easily build performant, memory-efficient, standards-compliant Web Components. FAST Elements work in every major browser and can be used in combination with any front-end framework or even without a framework.
To install the fast-element
library, use either npm
or yarn
as follows:
npm install --save @microsoft/fast-element
yarn add @microsoft/fast-element
Within your JavaScript or TypeScript code, you can then import library APIs like this:
import { FASTElement } from '@microsoft/fast-element';
:::tip Looking for a setup that integrates with a particular front-end framework or bundler? Check out our integration docs. :::
A pre-bundled script that contains all APIs needed to build web components with FAST Element is available on CDN. You can use this script by adding type="module"
to the script element and then importing from the CDN.
<!DOCTYPE html>
<html lang="en">
<head>
<script type="module">
import { FASTElement } from "https://unpkg.com/@microsoft/fast-element";
// your code here
</script>
</head>
<!-- ... -->
</html>
:::important
The above CDN location points to the latest release of fast-element
. It is advised that when you deploy your site or app, you import the specific version you have developed and tested with.
:::
:::note For simplicity, examples throughout the documentation will assume the library has been installed from NPM, but you can always replace the import location with the CDN URL. :::
FAQs
A library for constructing Web Components
The npm package @microsoft/fast-element receives a total of 70,588 weekly downloads. As such, @microsoft/fast-element popularity was classified as popular.
We found that @microsoft/fast-element demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 7 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.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.