Research
Security News
Malicious PyPI Package ‘pycord-self’ Targets Discord Developers with Token Theft and Backdoor Exploit
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
@module-federation/dts-kit
Advanced tools
import { generateTypes, generateTypesInChildProcess, consumeTypes, } from '@module-federation/dts-kit';
// generate types for expose modules
generateTypes({ remote: RemoteOptions })
// generate types for expose modules in child process
generateTypesInChildProcess({ remote: RemoteOptions })
// consume remote types
consumeTypes({ host: HostOptions })
interface DTSManagerOptions {
remote?: RemoteOptions;
host?: HostOptions;
extraOptions?: Record<string, any>;
}
interface RemoteOptions {
tsConfigPath?: string; // path where the tsconfig file is located, default is ''./tsconfig.json'
typesFolder?: string; // folder where all the files will be stored, default is '@mf-types',
compiledTypesFolder?: string; // folder where the federated modules types will be stored, default is 'compiled-types'
deleteTypesFolder?: boolean; // indicate if the types folder will be deleted when the job completes, default is 'true'
additionalFilesToCompile?: string[]; // The path of each additional file which should be emitted
compileInChildProcess?: boolean; // indicate if the types will be compiled in child process, default is 'false'
compilerInstance?: 'tsc' | 'vue-tsc'; // The compiler to use to emit files, default is 'tsc'
generateAPITypes?: boolean; // indicate if generate runtime api types, default is 'false'
abortOnError?: boolean; // indicate if the job will be aborted if an error occurs, default is 'true'
moduleFederationConfig: moduleFederationPlugin.ModuleFederationPluginOptions; // the configuration same configuration provided to the module federation plugin, it is MANDATORY
context?: string; // the context of the tsconfig file, default is 'process.cwd()'
implementation?: string; // the implementation of DTSManager
hostRemoteTypesFolder?: string; // the folder where the remote types pathname, default is `@mf-types`
}
interface HostOptions{
typesFolder?: string; // folder where all the files will be stored, default is '@mf-types',
abortOnError?: boolean; // indicate if the job will be aborted if an error occurs, default is 'true'
remoteTypesFolder?: string; // the folder where the remote types pathname, default is `@mf-types`
deleteTypesFolder?: boolean; // indicate if the types folder will be deleted before the job starts, default is 'true'
maxRetries?: number; // The number of times the plugin will try to download the types before failing, default is 3
moduleFederationConfig: moduleFederationPlugin.ModuleFederationPluginOptions; // the configuration same configuration provided to the module federation plugin, it is MANDATORY
context?: string; // the context of the tsconfig file, default is 'process.cwd()'
implementation?: string; // the implementation of DTSManager
}
FAQs
Bundler federated types
The npm package @module-federation/dts-kit receives a total of 4 weekly downloads. As such, @module-federation/dts-kit popularity was classified as not popular.
We found that @module-federation/dts-kit demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 8 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 uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.