Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@diss0nance/dependency-injection

Latest version: v1.0.0

Overview

Last scanned
23 Nov 2026
Published
23 Nov 2026
npm package Source: npm
2 Versions

Scan summary

@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.

  • Releases: 2 versions, all published on 23 Nov 2026.
  • Findings: No rules fired in version 1.0.0.

Versions

2 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.0.0 LATEST 23 Nov 2026 No rules fired
0.0.0-stage 23 Nov 2026 Not shown

No rules fired in 1.0.0

Findings

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.

README

The publisher’s own README, as collected from the registry.

README

Basic dependency injection

tsconfig

Make sure to set experimentalDecorators and emitDecoratorMetadata to true in tsconfig.json

{
    "compilerOptions": {
        "experimentalDecorators": true,
        "emitDecoratorMetadata": true,       
    }
}

Usage

Settings
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
})
Setup Module

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 { }
Injecting Modules

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.

Global dependencies

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 { }

OX Radar and Response Center

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.

Where it’s listed

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).

  • npm @diss0nance/dependency-injection

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

PHP2Shell, Day 5 93.6% of Measurable Instances Still Unpatched (1)
Vulnerability Insights

PHP2Shell, Day 5: The Panic Hasn’t Turned Into Patching

Frame 2085668439 (1)
Group 1261154229