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

@spinajs/di

Package Overview
Dependencies
Maintainers
0
Versions
295
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@spinajs/di - npm Package Compare versions

Comparing version 2.0.200 to 2.0.201

3

lib/cjs/container.js

@@ -175,3 +175,4 @@ "use strict";

// if not, by default last registered type is resolved
const fType = tType ?? targetType[targetType.length - 1];
// if we have override for target type in registry, resolve it ( last registered ) otherwise resolve target type type itself
const fType = targetType[targetType.length - 1] ?? tType;
const rValue = this.resolveType(sourceType, fType, opt);

@@ -178,0 +179,0 @@ return rValue;

@@ -169,3 +169,4 @@ import { InvalidArgument } from '@spinajs/exceptions';

// if not, by default last registered type is resolved
const fType = tType ?? targetType[targetType.length - 1];
// if we have override for target type in registry, resolve it ( last registered ) otherwise resolve target type type itself
const fType = targetType[targetType.length - 1] ?? tType;
const rValue = this.resolveType(sourceType, fType, opt);

@@ -172,0 +173,0 @@ return rValue;

{
"name": "@spinajs/di",
"version": "2.0.200",
"version": "2.0.201",
"description": "lightweight di container ",

@@ -53,4 +53,4 @@ "main": "lib/cjs/index.js",

"dependencies": {
"@spinajs/exceptions": "^2.0.200",
"@spinajs/util": "^2.0.200",
"@spinajs/exceptions": "^2.0.201",
"@spinajs/util": "^2.0.201",
"lodash": "^4.17.21",

@@ -57,0 +57,0 @@ "reflect-metadata": "^0.1.13"

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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