
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@duskit/components
Advanced tools
[](https://github.com/dusk-network/duskit/actions/workflows/ci.yml) [](https://www.npmjs.com/package/
Svelte components to build a Dusk web application.
The dev environment assumes that you have at least Node.js v22.11.0 installed. The LTS version is 22.11.0 at the time of writing.
This package is part of the Duskit monorepo. Please refer to the main README for monorepo usage, changeset management and installation of dependencies.
Install it with your favourite package manager:
npm install @duskit/components --save
Import the components you need in your Svelte files:
<script>
import { Button } from "@duskit/components";
</script>
<Button text="Hi there" />
This package doesn't include a prebuilt output, and lets the consumer application do the job.
This works well in out usual setup (SvelteKit), but causes issues in Vitest: components imported from node_modules
won't be compiled in the testing environment.
The easy solution is to inline this dependency in tests, but after that other @duskit
libraries used by this one aren't correctly imported.
To avoid these issues, make sure to inline all @duskit
packages in your test configuration::
// example vite.config.js
import { defineConfig } from "vite";
export default defineConfig(() => ({
// ... your config
test: {
server: {
deps: {
inline: [/@duskit\/.*/],
},
},
},
}));
npm run checks
- runs all health checks (formatting, linting, type checking, tests)npm run clean
- removes the coverage
and node_modules
foldersnpm run format
- fixes the formatting in all filesnpm run format:check
- performs the formatting checknpm run lint
- performs the linting checknpm run lint:fix
- fixes, where possible, linting errorsnpm run test
- runs the test suitenpm run test:coverage
- runs the test suite and generates the code coverage report in the coverage
foldernpm run test:watch
- runs the test suite in watch modenpm run typecheck
- runs the type checkernpm run typecheck:watch
- runs the type checker in watch modeFAQs
[](https://github.com/dusk-network/duskit/actions/workflows/ci.yml) [](https://www.npmjs.com/package/
We found that @duskit/components demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.