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

ioc-service-container

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ioc-service-container - npm Package Compare versions

Comparing version 1.5.1 to 1.5.2

10

Changelog.md

@@ -8,9 +8,15 @@ # Changelog

## [1.5.1] - 2021-07.29
## [1.5.2] - 2021-11-08
### Fixed
* Fixed an error in ServiceContainer.set() which did not build references instantly if required
## [1.5.1] - 2021-07-29
### Fixed
* Fixed an error in ServiceContainer.set() which not detected constructable classes
## [1.5.0] - 2021-07.29
## [1.5.0] - 2021-07-29

@@ -17,0 +23,0 @@ * You are now able to initialize a class only by its reference

11

dist/ServiceContainer.js

@@ -16,10 +16,9 @@ "use strict";

}
let factory = undefined;
if (isConstructable(factoryOrClassReference)) {
factory = () => new factoryOrClassReference();
}
let factory = isConstructable(factoryOrClassReference)
? () => new factoryOrClassReference()
: factoryOrClassReference;
services.push({
id: lowerId,
factory: factory || factoryOrClassReference,
instance: buildInstantly ? factoryOrClassReference() : undefined,
factory,
instance: buildInstantly ? factory() : undefined,
});

@@ -26,0 +25,0 @@ },

{
"name": "ioc-service-container",
"version": "1.5.1",
"version": "1.5.2",
"description": "Lightweight ioc service container",

@@ -16,8 +16,8 @@ "main": "dist/index.js",

"devDependencies": {
"@types/jest": "^26.0.24",
"jest": "^27.0.6",
"@types/jest": "^27.0.2",
"jest": "^27.3.1",
"sonarqube-scanner": "^2.8.1",
"ts-jest": "^27.0.4",
"ts-node": "^10.1.0",
"typescript": "^4.3.5"
"ts-jest": "^27.0.7",
"ts-node": "^10.4.0",
"typescript": "^4.4.4"
},

@@ -24,0 +24,0 @@ "files": [

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