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

cheap-di

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cheap-di - npm Package Compare versions

Comparing version 3.2.5 to 3.3.1

10

dist/decorators/inject.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getInjectedParams = exports.setInjectedParams = exports.inject = void 0;
const di_1 = require("./di");
const InheritancePreserver_1 = require("./InheritancePreserver");

@@ -29,4 +30,9 @@ const symbols_1 = require("../symbols");

const modifiedConstructor = InheritancePreserver_1.InheritancePreserver.getModifiedConstructor(constructor);
const injected = implementation[symbols_1.injectionSymbol];
if (!modifiedConstructor || modifiedConstructor !== constructor || !Array.isArray(injected)) {
let injected = implementation[symbols_1.injectionSymbol];
if (!modifiedConstructor) {
(0, di_1.di)(constructor);
InheritancePreserver_1.InheritancePreserver.constructorModified(constructor);
injected = implementation[symbols_1.injectionSymbol];
}
if (modifiedConstructor !== constructor || !Array.isArray(injected)) {
return [];

@@ -33,0 +39,0 @@ }

2

package.json
{
"name": "cheap-di",
"version": "3.2.5",
"version": "3.3.1",
"description": "JavaScript dependency injection like Autofac in .Net",

@@ -5,0 +5,0 @@ "scripts": {

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