providence
Advanced tools
Comparing version 0.7.0 to 0.7.1
@@ -64,5 +64,5 @@ /** | ||
function Providence() { | ||
var options = arguments[0] === undefined ? NOT_SET : arguments[0]; | ||
var skipDataCheck = arguments[1] === undefined ? false : arguments[1]; | ||
var skipProcessOptions = arguments[2] === undefined ? false : arguments[2]; | ||
var options = arguments.length <= 0 || arguments[0] === undefined ? NOT_SET : arguments[0]; | ||
var skipDataCheck = arguments.length <= 1 || arguments[1] === undefined ? false : arguments[1]; | ||
var skipProcessOptions = arguments.length <= 2 || arguments[2] === undefined ? false : arguments[2]; | ||
@@ -89,3 +89,3 @@ if (options === NOT_SET) { | ||
if (!skipDataCheck && this._options.getIn(DATA_PATH, NOT_SET) === NOT_SET) { | ||
throw new Error('value at path [\'root\', \'data\'] is required!'); | ||
throw new Error("value at path ['root', 'data'] is required!"); | ||
} | ||
@@ -265,3 +265,3 @@ } | ||
var path = options.getIn(PATH_PATH); | ||
var state = getIn(path, notSetValue); | ||
var state = getIn(path, NOT_SET); | ||
@@ -274,3 +274,3 @@ // get new state | ||
// - rootData boxed root data | ||
var newState = updater.call(null, state, unboxed, rootData); | ||
var newState = updater.call(null, state === NOT_SET ? notSetValue : state, unboxed, rootData); | ||
@@ -351,6 +351,2 @@ // TODO: delegate to an overridable: confirmChange(prev, next) | ||
for (var _len = arguments.length, rest = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { | ||
rest[_key - 1] = arguments[_key]; | ||
} | ||
var state = this.deref(NOT_SET); | ||
@@ -373,2 +369,6 @@ if (state === NOT_SET) { | ||
for (var _len = arguments.length, rest = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { | ||
rest[_key - 1] = arguments[_key]; | ||
} | ||
return forEach.apply(undefined, [wrapped].concat(rest)); | ||
@@ -380,6 +380,2 @@ }; | ||
for (var _len3 = arguments.length, rest = Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) { | ||
rest[_key3 - 1] = arguments[_key3]; | ||
} | ||
var state = this.deref(NOT_SET); | ||
@@ -402,2 +398,6 @@ if (state === NOT_SET) { | ||
for (var _len3 = arguments.length, rest = Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) { | ||
rest[_key3 - 1] = arguments[_key3]; | ||
} | ||
return reduce.apply(undefined, [wrapped].concat(rest)); | ||
@@ -404,0 +404,0 @@ }; |
{ | ||
"name": "providence", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"description": "Reference a sub-structure of any data structure", | ||
@@ -33,5 +33,5 @@ "main": "modules/index.js", | ||
"devDependencies": { | ||
"babel": "^5.4.7", | ||
"babel": "^5.8.23", | ||
"chai": "^2.3.0", | ||
"mocha": "^2.2.5" | ||
"mocha": "^2.3.2" | ||
}, | ||
@@ -41,5 +41,5 @@ "dependencies": { | ||
"lodash.has": "^3.2.1", | ||
"lodash.isplainobject": "^3.1.0", | ||
"lodash.isplainobject": "^3.2.0", | ||
"lodash.set": "^3.7.4" | ||
} | ||
} |
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
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
18974
4
2
0
Updatedlodash.isplainobject@^3.2.0