
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
@code-pushup/models
Advanced tools
**Model definitions and validators** for the [Code PushUp CLI](../cli/README.md).
Model definitions and validators for the Code PushUp CLI.
If you've already installed another @code-pushup/*
package, then you may have already installed @code-pushup/models
indirectly.
If not, you can always install it separately:
npm install --save-dev @code-pushup/models
yarn add --dev @code-pushup/models
pnpm add --save-dev @code-pushup/models
Import the type definitions if using TypeScript:
in code-pushup.config.ts
:
import type { CoreConfig } from '@code-pushup/models';
export default {
// ... this is type-checked ...
} satisfies CoreConfig;
in custom plugin:
import type { PluginConfig } from '@code-pushup/models';
export default function myCustomPlugin(): PluginConfig {
return {
// ... this is type-checked ...
};
}
import type { AuditOutput } from '@code-pushup/models';
async function myCustomPluginRunner() {
const audits: AuditOutput[] = await collectAudits();
await writeFile(RUNNER_OUTPUT_FILE, JSON.strinfigy(audits));
}
If you need runtime validation, use the underlying Zod schemas:
import { coreConfigSchema } from '@code-pushup/models';
const json = JSON.parse(readFileSync('code-pushup.config.json'));
const config = coreConfigSchema.parse(json); // throws ZodError if invalid
FAQs
Model definitions and validators for the Code PushUp CLI
The npm package @code-pushup/models receives a total of 3,048 weekly downloads. As such, @code-pushup/models popularity was classified as popular.
We found that @code-pushup/models demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.