isvalid 4.2.8 → 4.2.10
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/lib/validate.js +0 -2
- package/package.json +3 -3
- package/test/validate.js +0 -5
package/lib/validate.js
CHANGED
|
@@ -467,8 +467,6 @@ const validateAny = async (data, schema, options, keyPath, validatedData) => {
|
|
|
467
467
|
|
|
468
468
|
if (schema.type !== undefined) {
|
|
469
469
|
switch (typeName(schema.type).toLowerCase()) {
|
|
470
|
-
case 'any':
|
|
471
|
-
break;
|
|
472
470
|
case 'object':
|
|
473
471
|
data = await validateObject(data, schema, options, keyPath, validatedData);
|
|
474
472
|
break;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "isvalid",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.10",
|
|
4
4
|
"description": "Async JSON validation library for node.js.",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@eslint/eslintrc": "^3.3.1",
|
|
20
20
|
"@eslint/js": "^9.13.0",
|
|
21
|
-
"@trenskow/caseit": "^1.4.
|
|
21
|
+
"@trenskow/caseit": "^1.4.16",
|
|
22
22
|
"body-parser": "^2.2.0",
|
|
23
23
|
"chai": "^6.2.1",
|
|
24
24
|
"chai-as-promised": "^8.0.2",
|
|
@@ -42,6 +42,6 @@
|
|
|
42
42
|
"url": "https://github.com/trenskow"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@trenskow/merge": "^0.1.
|
|
45
|
+
"@trenskow/merge": "^0.1.46"
|
|
46
46
|
}
|
|
47
47
|
}
|
package/test/validate.js
CHANGED
|
@@ -380,11 +380,6 @@ describe('validate', function() {
|
|
|
380
380
|
.and.to.have.property('validator', 'type');
|
|
381
381
|
});
|
|
382
382
|
});
|
|
383
|
-
describe('any validator', function() {
|
|
384
|
-
it('should come back with same input as output.', () => {
|
|
385
|
-
return expect(isvalid({ some: 'data' }, 'any')).to.eventually.eql({ some: 'data' });
|
|
386
|
-
});
|
|
387
|
-
});
|
|
388
383
|
describe('object validator', function() {
|
|
389
384
|
commonTests.all(Object, {}, 123);
|
|
390
385
|
it('should come back with same input if sub-schema is not provided.', () => {
|