
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
@mickmister/types
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/types 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
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

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