New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@travetto/di

Package Overview
Dependencies
Maintainers
1
Versions
319
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@travetto/di - npm Package Compare versions

Comparing version 3.0.3 to 3.1.0-rc.0

6

package.json
{
"name": "@travetto/di",
"version": "3.0.3",
"version": "3.1.0-rc.0",
"description": "Dependency registration/management and injection support.",

@@ -30,6 +30,6 @@ "keywords": [

"dependencies": {
"@travetto/registry": "^3.0.3"
"@travetto/registry": "^3.1.0-rc.0"
},
"peerDependencies": {
"@travetto/transformer": "^3.0.3"
"@travetto/transformer": "^3.1.0-rc.0"
},

@@ -36,0 +36,0 @@ "peerDependenciesMeta": {

@@ -564,4 +564,16 @@ import { Class, ClassInstance, ConcreteClass, GlobalEnv } from '@travetto/base';

}
/**
* Execute the run method of a given class
*/
async runInstance<T extends { run(..._args: unknown[]): unknown }>(
cls: Class<T>, ...args: Parameters<T['run']>
): Promise<Awaited<ReturnType<T['run']>>> {
await RootRegistry.init();
const inst = await this.getInstance<T>(cls);
// eslint-disable-next-line @typescript-eslint/consistent-type-assertions
return inst.run(...args) as Awaited<ReturnType<T['run']>>;
}
}
export const DependencyRegistry = new $DependencyRegistry();
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc