
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
@mickmister/apps
Advanced tools
This package contains shared type definitions used by the Mattermost web app and related projects.
For technologies that support subpath exports, such as Node.js, Webpack, and Babel, you can import these types directly from individual files.
import {UserProfile} from '@mattermost/types/users';
For technologies that don't support that yet, you can add an alias in its package resolution settings to support that.
In the tsconfig.json, you can use compilerOptions.paths to add that alias. This also requires a compilerOptions.baseUrl if you haven't set that already.
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@mattermost/types/*": ["node_modules/@mattermost/types/lib/*"]
}
}
}
In your Jest config, you can use the moduleNameMapper field to add that alias.
{
"moduleNameMapper": {
"^@mattermost/types/(.*)$": "<rootDir>/node_modules/@mattermost/types/lib/$1"
}
}
As a member of Mattermost with write access to our NPM organization, you can build and publish this package by running the following commands:
npm run build --workspace=packages/types
npm publish --workspace=packages/types
Make sure to increment the version number in package.json first! You can add -0, -1, etc for pre-release versions.
FAQs
Shared type definitions used by the Mattermost web app
We found that @mickmister/apps 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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.