
Security News
Node.js Homepage Adds Paid Support Link, Prompting Contributor Pushback
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
nestjs-uuid
Advanced tools
yarn add nestjs-uuid
npm i nestjs-uuid
Import module:
@Module({
imports: [
UuidModule
],
controllers: [AppController],
providers: [AppService],
})
export class AppModule {}
Inject uuid service into a provider:
v0.0.5
@Injectable()
export class AppService {
constructor(@InjectUuidService() private readonly uuidService: UuidService) {}
getHello() {
return this.uuidService.generate();
}
}
After v.0.0.5
@Injectable()
export class AppService {
constructor(private readonly uuidService: UuidService) {}
getHello() {
return this.uuidService.generate();
}
}
getHello() {
return this.uuidService.generate({ version: 1 });
}
getHello() {
return this.uuidService.generate({ version: 4 });
}
FAQs
A NestJS module for generating UUIDs
We found that nestjs-uuid 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
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.
Research
Security News
The Socket Research Team investigates a malicious Python typosquat of a popular password library that forces Windows shutdowns when input is incorrect.