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.0 to 1.5.1

6

Changelog.md

@@ -8,2 +8,8 @@ # Changelog

## [1.5.1] - 2021-07.29
### Fixed
* Fixed an error in ServiceContainer.set() which not detected constructable classes
## [1.5.0] - 2021-07.29

@@ -10,0 +16,0 @@

6

dist/ServiceContainer.js

@@ -17,3 +17,3 @@ "use strict";

let factory = undefined;
if (isClassReference(factoryOrClassReference)) {
if (isConstructable(factoryOrClassReference)) {
factory = () => new factoryOrClassReference();

@@ -52,4 +52,4 @@ }

};
function isClassReference(v) {
return typeof v === 'function' && /^\s*class\s+/.test(v.toString());
function isConstructable(obj) {
return !!obj.prototype && !!obj.prototype.constructor.name;
}
{
"name": "ioc-service-container",
"version": "1.5.0",
"version": "1.5.1",
"description": "Lightweight ioc service container",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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