🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@fluojs/notifications

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fluojs/notifications - npm Package Compare versions

Comparing version
1.0.0-beta.1
to
1.0.0-beta.2
+3
-3
package.json

@@ -12,3 +12,3 @@ {

],
"version": "1.0.0-beta.1",
"version": "1.0.0-beta.2",
"private": false,

@@ -41,4 +41,4 @@ "license": "MIT",

"@fluojs/core": "^1.0.0-beta.1",
"@fluojs/di": "^1.0.0-beta.1",
"@fluojs/runtime": "^1.0.0-beta.1"
"@fluojs/di": "^1.0.0-beta.2",
"@fluojs/runtime": "^1.0.0-beta.2"
},

@@ -45,0 +45,0 @@ "devDependencies": {

@@ -74,4 +74,5 @@ # @fluojs/notifications

@Inject(NotificationsService)
export class WelcomeService {
constructor(@Inject(NotificationsService) private readonly notifications: NotificationsService) {}
constructor(private readonly notifications: NotificationsService) {}

@@ -92,2 +93,4 @@ async sendWelcomeEmail(userId: string, email: string) {

`NotificationsModule.forRoot(...)`는 `NotificationsService`, `NOTIFICATIONS`, `NOTIFICATION_CHANNELS`를 global provider로 export합니다. 애플리케이션 서비스는 fluo의 class-level `@Inject(...)` decorator로 의존성을 선언해야 standard-decorator DI container가 legacy parameter decorator 없이 서비스를 resolve할 수 있습니다.
## 일반적인 패턴

@@ -94,0 +97,0 @@

@@ -74,4 +74,5 @@ # @fluojs/notifications

@Inject(NotificationsService)
export class WelcomeService {
constructor(@Inject(NotificationsService) private readonly notifications: NotificationsService) {}
constructor(private readonly notifications: NotificationsService) {}

@@ -92,2 +93,4 @@ async sendWelcomeEmail(userId: string, email: string) {

`NotificationsModule.forRoot(...)` exports `NotificationsService`, `NOTIFICATIONS`, and `NOTIFICATION_CHANNELS` as global providers. Application services should declare dependencies with fluo's class-level `@Inject(...)` decorator so the standard-decorator DI container can resolve the service without legacy parameter decorators.
## Common Patterns

@@ -94,0 +97,0 @@