Scan your whole stack
From OX Research Newsroom
Are you using @diss0nance/dependency-injection?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v1.0.0
@diss0nance/dependency-injection was last scanned on 23 Nov 2026 at version 1.0.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 1.0.0 LATEST | 23 Nov 2026 | No rules fired |
| 0.0.0-stage | 23 Nov 2026 | Not shown |
Findings for v1.0.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 1.0.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Basic dependency injection
Make sure to set experimentalDecorators and emitDecoratorMetadata to true in tsconfig.json
{
"compilerOptions": {
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
}
}
DISettings.set({
//If set to true, it will throw an error if circular dependencies happen.
//if set to false, circular dependencies converts to undefined.
//default: true
throwCircular: true
})
Use the @Module decorator, and add the classes you need in the dependencies list.
@Module({
dependencies: [
Users
]
})
class Login {
constructor(private users: Users) { }
}
Make sure to mark injectable classes with Injectable
@Injectable()
class Users { }
Modules are also injectable, so one module can have another as a dependency.
@Module({
dependencies: [
Login
]
})
class Session {
constructor(private login: Login) { }
}
Different modules have their own instances of injected dependancies, even if one is injected in another.
You can mark any class or module as global with the global option.
Global dependencies has the same instance throughout all modules, and does not need to part of a module's dependency list to be injected.
@Module({
dependencies: [
Login
],
global: true
})
class Session {
constructor(
private login: Login,
private languages: Languages
) { }
}
@Injectable({ global: true })
class Languages { } Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.