
Research
PyPI Package Impersonates SymPy to Deliver Cryptomining Malware
Malicious PyPI package sympy-dev targets SymPy users, a Python symbolic math library with 85 million monthly downloads.
urbit-api-ts
Advanced tools
Through the magic of typescript, urbit-api-ts maintains a map from marks to
interfaces. It is however the developer's job to keep these updated. The general
form of adding a mark is as follows.
// Anywhere in your project
export type Action = 'increment' | 'decrement';
export interface Update {
count: number;
}
// Maps the Action interface to the 'ts-demo-action' mark
declare module 'urbit-api-ts/lib/marks' {
interface Marks {
'ts-demo-action': Action;
'ts-demo-update': Update;
}
}
This will then ensure that subscriptions and pokes have correct type inference
// Somewhere in the root component
const { bind, poke } = useUrbitApi(window.ship, onUpdate);
// type checks correctly
poke('ts-demo', 'ts-demo-action', 'increment')
// fails to type check
poke('ts-demo', 'ts-demo-value', 'increment');
// Elsewhere,
const onUpdate: UpdateHandler = ({ application, mark, value }) => {
switch(mark) {
case 'ts-demo-update':
// typechecks correctly
const { count } = value;
console.log(value);
case 'ts-demo-action':
// does not typecheck
const { count } = value;
console.log(value);
}
}
FAQs
A library for urbit API interaction
The npm package urbit-api-ts receives a total of 0 weekly downloads. As such, urbit-api-ts popularity was classified as not popular.
We found that urbit-api-ts 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
Malicious PyPI package sympy-dev targets SymPy users, a Python symbolic math library with 85 million monthly downloads.

Product
Create and share saved alert views with custom tabs on the org alerts page, making it easier for teams to return to consistent, named filter sets.

Product
Socket’s Rust and Cargo support is now generally available, providing dependency analysis and supply chain visibility for Rust projects.