@loke/di-ioc
Advanced tools
Comparing version 2.2.0 to 2.2.1
@@ -342,3 +342,3 @@ 'use strict'; | ||
return new Proxy(newInstance, { | ||
get: (target, prop) => { | ||
get: (target, prop, receiver) => { | ||
if (!accessedProps.has(prop)) { | ||
@@ -349,3 +349,3 @@ accessedProps.add(prop); | ||
return Reflect.get(target, prop); | ||
return Reflect.get(target, prop, receiver); | ||
}, | ||
@@ -363,3 +363,3 @@ apply: (target, thisArg, args) => { | ||
}, | ||
construct: (target, args) => { | ||
construct: (target, args, newTarget) => { | ||
if (!accessedProps.has(super.CONSTRUCTOR_CALL)) { | ||
@@ -373,3 +373,3 @@ accessedProps.add(super.CONSTRUCTOR_CALL); | ||
return Reflect.construct(target, args); | ||
return Reflect.construct(target, args, newTarget); | ||
}, | ||
@@ -376,0 +376,0 @@ }); |
{ | ||
"name": "@loke/di-ioc", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "Node.js dependency injection.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19152