extendable-immutable
Advanced tools
Comparing version 1.3.2 to 1.3.3
@@ -39,3 +39,8 @@ import createExtendable from './util/createExtendable'; | ||
function ExtendableWrapper(val) { | ||
return this.__wrapImmutable(new Base(val)); | ||
var instance = this; | ||
if (instance === undefined) { | ||
instance = new ExtendableWrapper(val); | ||
} | ||
return instance.__wrapImmutable(new Base(val)); | ||
} | ||
@@ -42,0 +47,0 @@ |
@@ -50,3 +50,8 @@ 'use strict'; | ||
function ExtendableWrapper(val) { | ||
return this.__wrapImmutable(new Base(val)); | ||
var instance = this; | ||
if (instance === undefined) { | ||
instance = new ExtendableWrapper(val); | ||
} | ||
return instance.__wrapImmutable(new Base(val)); | ||
} | ||
@@ -53,0 +58,0 @@ |
{ | ||
"name": "extendable-immutable", | ||
"version": "1.3.2", | ||
"version": "1.3.3", | ||
"main": "lib/index.js", | ||
@@ -58,6 +58,6 @@ "jsnext:main": "es/index.js", | ||
"eslint-plugin-mocha": "^4.5.1", | ||
"eslint-plugin-react": "^6.3.0", | ||
"eslint-plugin-react": "^7.0.1", | ||
"expect": "^1.20.2", | ||
"glob": "^7.1.0", | ||
"immutable": "^3.8.1", | ||
"immutable": "4.0.0-rc.2", | ||
"mocha": "^3.1.0", | ||
@@ -64,0 +64,0 @@ "nyc": "^10.0.0", |
@@ -41,3 +41,8 @@ import createExtendable from './util/createExtendable' | ||
function ExtendableWrapper(val) { | ||
return this.__wrapImmutable(new Base(val)) | ||
let instance = this | ||
if (instance === undefined) { | ||
instance = new ExtendableWrapper(val) | ||
} | ||
return instance.__wrapImmutable(new Base(val)) | ||
} | ||
@@ -44,0 +49,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
31164
547