
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@hmhealey/types
Advanced tools
This package contains shared type definitions used by the Mattermost web app and related projects.
It is currently a work in progress and contains internal types that will be removed in a followup release.
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 adsd 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
The npm package @hmhealey/types receives a total of 0 weekly downloads. As such, @hmhealey/types popularity was classified as not popular.
We found that @hmhealey/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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
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.