providence
Advanced tools
Comparing version 0.3.0 to 0.4.0
@@ -85,2 +85,4 @@ /** | ||
this._firstValue = NOT_SET; | ||
if (!skipDataCheck && this._options.getIn(DATA_PATH, NOT_SET) === NOT_SET) { | ||
@@ -139,2 +141,6 @@ throw new Error('value at path [\'root\', \'data\'] is required!'); | ||
if (this._firstValue === NOT_SET) { | ||
this._firstValue = resolvedValue; | ||
} | ||
return resolvedValue === NOT_SET ? notSetValue : resolvedValue; | ||
@@ -147,2 +153,6 @@ }; | ||
Providence.prototype.firstValue = function () { | ||
return this._firstValue === NOT_SET ? this.deref() : this._firstValue; | ||
}; | ||
/** | ||
@@ -149,0 +159,0 @@ * Return true if a keypath exists within the unboxed root data. |
{ | ||
"name": "providence", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"description": "Reference a sub-structure of any data structure", | ||
@@ -5,0 +5,0 @@ "main": "modules/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
23893
424