arstotzka 0.13.0 → 0.13.1

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.
Files changed (3) hide show
  1. package/index.js +1 -0
  2. package/package.json +1 -1
  3. package/usage.js +1 -1
package/index.js CHANGED
@@ -35,6 +35,7 @@ export function DYNAMIC(constraints){
35
35
  }
36
36
 
37
37
  const TYPE = t => x => typeof x == t;
38
+ const IS_ARRAY = x => Array.isArray(x);
38
39
 
39
40
  const CONSTRAINT = Symbol();
40
41
  const FC_ARRAY = Symbol(); // https://www.youtube.com/watch?v=qSqXGeJJBaI
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arstotzka",
3
- "version": "0.13.0",
3
+ "version": "0.13.1",
4
4
  "description": "JS validation utility",
5
5
  "main": "index.js",
6
6
  "type": "module",
package/usage.js CHANGED
@@ -97,7 +97,7 @@ const parseableIntSchema = Arstotzka.ANY_OF(
97
97
  );
98
98
 
99
99
  const tests = [
100
- [null, {x: "number"}],
100
+ [null, "array"],
101
101
  [testSubject0, schema], // Only an error caused by invalid validator
102
102
  [testSubject1, schema], // Full of errors
103
103
  ["miles", "string"], // Any value can be validated, not only objects