extendable-immutable
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -45,3 +45,3 @@ import _Object$create from 'babel-runtime/core-js/object/create'; | ||
var res = _originalMethod.apply(this, args); | ||
if (res instanceof base && !(res instanceof proto.constructor)) { | ||
if (res.constructor === base.prototype.constructor) { | ||
return this.__wrapImmutable(res); | ||
@@ -48,0 +48,0 @@ } |
@@ -63,3 +63,3 @@ 'use strict'; | ||
var res = _originalMethod.apply(this, args); | ||
if (res instanceof base && !(res instanceof proto.constructor)) { | ||
if (res.constructor === base.prototype.constructor) { | ||
return this.__wrapImmutable(res); | ||
@@ -66,0 +66,0 @@ } |
{ | ||
"name": "extendable-immutable", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"main": "lib/index.js", | ||
@@ -5,0 +5,0 @@ "jsnext:main": "es/index.js", |
@@ -42,3 +42,3 @@ import invariant from 'invariant' | ||
const res = _originalMethod.apply(this, args) | ||
if (res instanceof base && !(res instanceof proto.constructor)) { | ||
if (res.constructor === base.prototype.constructor) { | ||
return this.__wrapImmutable(res) | ||
@@ -45,0 +45,0 @@ } |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
28147