Compare commits

..

No commits in common. '26a67db79d04d8003dfa6fd6b82836ac4a81f86b' and '5a1ece5482caf75b6692134815f925a0ae1201a3' have entirely different histories.

@ -2,7 +2,6 @@
const asExpression = require("as-expression");
const defaultValue = require("default-value");
const assureArray = require("assure-array");
const flatten = require("flatten");
const ValidationError = require("@validatem/error");
@ -16,7 +15,7 @@ function containsRules(rules) {
return false;
} else {
// TODO: Switch to `Array#flat` once Node 10.x goes EOL (April 2021)
let flattenedRules = flatten(assureArray(rules));
let flattenedRules = flatten(rules);
if (!flattenedRules.some((rule) => rule != null)) {
return false;

@ -6,7 +6,7 @@
"validator",
"combinator"
],
"version": "0.1.4",
"version": "0.1.3",
"main": "index.js",
"repository": "http://git.cryto.net/validatem/has-shape.git",
"author": "Sven Slootweg <admin@cryto.net>",
@ -17,7 +17,6 @@
"@validatem/error": "^1.0.0",
"@validatem/validation-result": "^0.1.1",
"as-expression": "^1.0.0",
"assure-array": "^1.0.0",
"default-value": "^1.0.0",
"flatten": "^1.0.3"
},

Loading…
Cancel
Save