deps-object
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -40,7 +40,8 @@ 'use strict'; | ||
// isArrayOfStrings :: Input -> Boolean | ||
var isArrayOfStrings = _ramda2.default.both(_ramda2.default.is(Array), _ramda2.default.all(_ramda2.default.is(String))); | ||
// saveToDeps :: Array[String] -> Object | ||
var saveToDeps = _ramda2.default.pipeP(resolve, _ramda2.default.unless(_ramda2.default.is(Array), function () { | ||
var saveToDeps = _ramda2.default.pipeP(resolve, _ramda2.default.unless(isArrayOfStrings, function () { | ||
return reject('deps should be an Array[String]'); | ||
}), _ramda2.default.unless(_ramda2.default.all(_ramda2.default.is(String)), function () { | ||
return reject('deps should be an Array[String]'); | ||
}), _ramda2.default.map(completeDep), all, _ramda2.default.mergeAll, _sortedObject2.default); | ||
@@ -47,0 +48,0 @@ |
{ | ||
"name": "deps-object", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Transform dependencies Array into an Object", | ||
@@ -5,0 +5,0 @@ "main": "index.es5.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
4954