Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@manifoldco/component-plan-matrix
Advanced tools
Place the following HTML where you’d like the component to appear (this works in any JS framework, or even no framework!):
<manifold-plan-matrix></manifold-plan-matrix>
Next place the following at the very beginning of the <body>
tag:
<!-- modern browsers -->
<script type="module">
import(
'https://js.cdn.manifold.co/@manifoldco/component-plan-matrix/loader/index.mjs'
).then(({ defineCustomElements }) => defineCustomElements(window));
</script>
<!-- legacy browsers -->
<script
nomodule
src="https://js.cdn.manifold.co/@manifoldco/component-plan-matrix/dist/manifold-plan-matrix.js"
></script>
Alternately, if you build your site with npm using webpack, create-react-app, etc., run:
npm install @manifoldco/component-plan-matrix
And add the following code to your application, ideally to your entry file so it’s loadded as early as possible:
import('@manifoldco/component-plan-matrix/loader').then(({ defineCustomElements }) =>
defineCustomElements(window)
);
This libary is built using Stencil. For more information about integrating with your site, please refer to the latest framework docs.
This Web Component works in all frameworks & environments, but if you’re using within a React & TypeScript setup, you’ll also need the following config.
Create a custom-elements.d.ts
file anywhere in your project that’s within tsconfig.json
’s
includes property:
import { Components, JSX as LocalJSX } from '@manifoldco/component-plan-matrix/loader';
import { DetailedHTMLProps, HTMLAttributes } from 'react';
type StencilProps<T> = {
[P in keyof T]?: Omit<T[P], 'ref'>;
};
type ReactProps<T> = {
[P in keyof T]?: DetailedHTMLProps<HTMLAttributes<T[P]>, T[P]>;
};
type StencilToReact<T = LocalJSX.IntrinsicElements, U = HTMLElementTagNameMap> = StencilProps<T> &
ReactProps<U>;
declare global {
export namespace JSX {
interface IntrinsicElements extends StencilToReact {}
}
}
FAQs
Stencil Component Starter
We found that @manifoldco/component-plan-matrix demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 15 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 a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.