
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@deleteagency/dc
Advanced tools
TODO
Use the package manager npm for installation.
$ npm install @deleteagency/dc
// collapsed/collapsed.js
import { DcComponent } from '@deleteagency/dc';
class CollapsedComponent extends DcBaseComponent {
static namespace = 'collapsed';
static requiredRefs = ['button', 'content'];
init = () => {
console.log('CollapsedComponent was instantiated on the element', this.element);
console.log('Options', this.options);
console.log('Refs', this.refs);
this.addListener(this.refs.button, 'click', this.onClick);
}
onClick = () => {
if (this.refs.content.classList.contains('show')) {
this.refs.content.classList.remove('show');
} else {
this.refs.content.classList.add('show');
}
}
}
// collapsed/index.js
import './scss/index.scss';
import { dcFactory } from '@deleteagency/dc';
import CollapsedComponent from './collapsed.js';
dcFactory.register(CollapsedComponent);
// later after registering all your components, when your page is ready
dcFactory.init(document.body);
Required
Type: typeof DcBaseComponent
Class which inherits DcBaseComponent and will be instantiated
Optional
Type: string | CallableFunction: HTMLElement[]
CSS selector which will override searching by getNamespace() and be used for searching elements of given componentClass.
Starts the factory on a given root: finds and creates all registered components within the root
Optional
Type: HTMLElement
Optional
Type: boolean
Defines whether or not components which are marked as lazy should be created during this particular initialization.
To mark components as lazy you need to add data-dc-lazy
attribute on its element or any of its parent elements
Destroy all previously registered components within the passed element
Required
Type: HTMLElement
FAQs
[Live Demo](https://delete-agency.github.io/dc/)
The npm package @deleteagency/dc receives a total of 164 weekly downloads. As such, @deleteagency/dc popularity was classified as not popular.
We found that @deleteagency/dc demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.