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 2.0.3 to 2.1.0

10

package.json
{
"name": "@travetto/di",
"displayName": "Dependency Injection",
"version": "2.0.3",
"version": "2.1.0",
"description": "Dependency registration/management and injection support.",

@@ -32,8 +32,8 @@ "keywords": [

"dependencies": {
"@travetto/transformer": "^2.0.3",
"@travetto/registry": "^2.0.2"
"@travetto/transformer": "^2.1.0",
"@travetto/registry": "^2.1.0"
},
"devDependencies": {
"@travetto/config": "^2.0.3",
"@travetto/schema": "^2.0.5"
"@travetto/config": "^2.1.0",
"@travetto/schema": "^2.1.0"
},

@@ -40,0 +40,0 @@ "docDependencies": {

@@ -14,3 +14,3 @@ <!-- This file was generated by @travetto/doc and should not be modified directly -->

## Declaration
The [@Injectable](https://github.com/travetto/travetto/tree/main/module/di/src/decorator.ts#L30) and [@InjectableFactory](https://github.com/travetto/travetto/tree/main/module/di/src/decorator.ts#L72) decorators provide the registration of dependencies. Dependency declaration revolves around exposing `class`es and subtypes thereof to provide necessary functionality. Additionally, the framework will utilize dependencies to satisfy contracts with various implementations (e.g. [MongoModelService](https://github.com/travetto/travetto/tree/main/module/model-mongo/src/service.ts#L42) provides itself as an injectable candidate for [ModelCrudSupport](https://github.com/travetto/travetto/tree/main/module/model/src/service/crud.ts).
The [@Injectable](https://github.com/travetto/travetto/tree/main/module/di/src/decorator.ts#L30) and [@InjectableFactory](https://github.com/travetto/travetto/tree/main/module/di/src/decorator.ts#L72) decorators provide the registration of dependencies. Dependency declaration revolves around exposing `class`es and subtypes thereof to provide necessary functionality. Additionally, the framework will utilize dependencies to satisfy contracts with various implementations (e.g. [MongoModelService](https://github.com/travetto/travetto/tree/main/module/model-mongo/src/service.ts#L44) provides itself as an injectable candidate for [ModelCrudSupport](https://github.com/travetto/travetto/tree/main/module/model/src/service/crud.ts).

@@ -17,0 +17,0 @@ **Code: Example Injectable**

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