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.
@aaronshaf/totes
Advanced tools
React-like web components. Powered by lit-html.
Supports:
<script type="module">
import { html, Component } from "https://unpkg.com/@aaronshaf/totes@1/index.js";
class HelloWorld extends Component {
render() {
return html`<div>Hello, ${this.props.name}</div>`;
}
}
customElements.define("hello-world", HelloWorld);
</script>
<hello-world name="Aaron"></hello-world>
That's it. No build steps.️ 🎵
export default class BasicExample extends Component {
static get observedAttributes() {
return ["message"];
}
constructor() {
super();
this.state = {
name: "Aaron",
toggled: false
};
}
handleInput(event) {
this.setState({ name: event.target.value || "Aaron" });
}
handleClick() {
this.setState({ toggled: this.state.toggled === false });
}
render() {
return html`<div>
<div>
<input
type="text"
value="Aaron"
@input=${this.handleInput}
/>
</div>
<p>${this.props.message} ${this.state.name}</p>
<button @click=${this.handleClick}>
${this.state.toggled ? "On" : "Off"}
</button>
</div>`;
}
}
customElements.define("basic-example", BasicExample);
<basic-example message="Hello"></basic-example>
yarn add @aaronshaf/totes --prod
<script src="https://unpkg.com/@webcomponents/webcomponentsjs@2.1.3/webcomponents-loader.js"></script>
git clone https://github.com/aaronshaf/totes.git
yarn global add serve
serve
FAQs
React-like web components
We found that @aaronshaf/totes demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.