Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@travetto/di

Package Overview
Dependencies
Maintainers
1
Versions
313
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.1.0 to 3.1.1

4

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

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

"dependencies": {
"@travetto/registry": "^3.1.0"
"@travetto/registry": "^3.1.1"
},

@@ -33,0 +33,0 @@ "peerDependencies": {

@@ -57,3 +57,3 @@ import type { MethodDescriptor, Class, ClassInstance } from '@travetto/base';

export function Inject(first?: InjectConfig | symbol, ...args: (InjectConfig | undefined)[]) {
return (target: unknown, propertyKey: string | symbol, idx?: number | PropertyDescriptor): void => {
return (target: unknown, propertyKey?: string, idx?: number | PropertyDescriptor): void => {
if (typeof idx !== 'number') { // Only register if on property

@@ -60,0 +60,0 @@ const config: InjectConfig = collapseConfig(first, ...args);

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