
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.
@dojo/interfaces
Advanced tools
This package contain TypeScript interfaces and types that are widely used across Dojo 2 packages. It is designed to make it easier to maintain these interfaces as well as build code that integrates well with the rest of the Dojo 2 packages without requiring a hard dependency on those other packages.
WARNING This is beta software. While we do not anticipate significant changes to the API at this stage, we may feel the need to do so. This is not yet production ready, so you should use at your own risk.
To use @dojo/interfaces
install the package:
npm install @dojo/interfaces
Evented
and Destroyable
interfaces, which are used throughout many packages, specifically@dojo/core
and @dojo/widget-core
.
Evented
defines an interface for objects that emit events, while Destroyable
defines an interface for objects that have own
and destroy
methods.
Common, foundational interfaces used widely throughout most Dojo 2 packages. Includes Handle
and event related interfaces EventObject
, and EventTargettedObject
.
Interfaces for working with @dojo/loader
. If the loader is included on the page, you can reference the loader with:
import { DojoRequire } from '@dojo/interfaces/loader';
declare const require: DojoRequire;
require(['some-module'], (someModule) => {
});
Thenable
and ArrayLike
interfaces. Thenable
will allow you to use promise-like objects without pulling in @dojo/shim
.
A set of interfaces for working with widgets and the virtual DOM. To work with a VNode
:
import { VNode } from '@dojo/interfaces/vdom';
let node: VNode;
node = someFlag ? v('div') : v('p');
We appreciate your interest! Please see the Dojo 2 Meta Repository for the Contributing Guidelines.
This repository uses prettier
for code styling rules and formatting. A pre-commit hook is installed automatically and configured to run prettier
against all staged files as per the configuration in the projects package.json
.
An additional npm script to run prettier
(with write set to true
) against all src
and test
project files is available by running:
npm run prettier
To start working with this package, clone the repository and run npm install
.
In order to build the project run grunt dev
or grunt dist
.
Since this is a type only package, we are currently working on the best way to test this package.
© 2017 JS Foundation. New BSD license.
FAQs
Common interfaces and types for Dojo 2
The npm package @dojo/interfaces receives a total of 194 weekly downloads. As such, @dojo/interfaces popularity was classified as not popular.
We found that @dojo/interfaces 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
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.