@orieljs/validation 0.1.0-alpha.10 → 0.1.0-alpha.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -2188,7 +2188,8 @@ var Rule = {
|
|
|
2188
2188
|
|
|
2189
2189
|
// Validator.ts
|
|
2190
2190
|
import { Arr as Arr11 } from "@orieljs/support";
|
|
2191
|
-
var
|
|
2191
|
+
var RULE_FLAGS = ["bail", "nullable", "sometimes"];
|
|
2192
|
+
var SKIPPED_MODIFIERS = new Set(RULE_FLAGS);
|
|
2192
2193
|
var DEPENDENT_RULES = /* @__PURE__ */ new Set([
|
|
2193
2194
|
"after",
|
|
2194
2195
|
"after_or_equal",
|
|
@@ -2562,7 +2563,7 @@ var ValidationFactoryImpl = class {
|
|
|
2562
2563
|
}
|
|
2563
2564
|
/** Every rule this factory knows, built-in and extend()ed, sorted (for editors: `oriel ide:info`). */
|
|
2564
2565
|
ruleNames() {
|
|
2565
|
-
return [.../* @__PURE__ */ new Set([...Object.keys(builtinRules), ...Object.keys(this.extended)])].sort();
|
|
2566
|
+
return [.../* @__PURE__ */ new Set([...Object.keys(builtinRules), ...RULE_FLAGS, ...Object.keys(this.extended)])].sort();
|
|
2566
2567
|
}
|
|
2567
2568
|
extend(name, callback, message) {
|
|
2568
2569
|
this.extended[name] = {
|