diff --git a/package-lock.json b/package-lock.json index 488b7c8..75f48ab 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,15 +1,15 @@ { "name": "@hckrnews/objects", - "version": "2.2.5", + "version": "2.3.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@hckrnews/objects", - "version": "2.2.5", + "version": "2.3.0", "license": "LGPL-3.0", "dependencies": { - "@hckrnews/validator": "^4.2.3" + "@hckrnews/validator": "^4.2.5" }, "devDependencies": { "@babel/core": "^7.9.0", @@ -1494,9 +1494,9 @@ } }, "node_modules/@hckrnews/validator": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/@hckrnews/validator/-/validator-4.2.3.tgz", - "integrity": "sha512-ivSzKw+1ndkYvi6/P796T0+CCqnEC0Qc/gQ1S6AjsAab4NH0AUgHDb21e6BpgyUMygBsKnIAYLC3vdsZbrfb7w==", + "version": "4.2.5", + "resolved": "https://registry.npmjs.org/@hckrnews/validator/-/validator-4.2.5.tgz", + "integrity": "sha512-SGjA+HgM3TFqtfqcRZZpf4y+6emQBKA3r4UjzIw/eykWbUUB9o2EUk09rLrm9nuEJLGKm/LmEF/FfYIUz4KuMA==", "engines": { "node": ">=10" } @@ -16737,9 +16737,9 @@ "requires": {} }, "@hckrnews/validator": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/@hckrnews/validator/-/validator-4.2.3.tgz", - "integrity": "sha512-ivSzKw+1ndkYvi6/P796T0+CCqnEC0Qc/gQ1S6AjsAab4NH0AUgHDb21e6BpgyUMygBsKnIAYLC3vdsZbrfb7w==" + "version": "4.2.5", + "resolved": "https://registry.npmjs.org/@hckrnews/validator/-/validator-4.2.5.tgz", + "integrity": "sha512-SGjA+HgM3TFqtfqcRZZpf4y+6emQBKA3r4UjzIw/eykWbUUB9o2EUk09rLrm9nuEJLGKm/LmEF/FfYIUz4KuMA==" }, "@istanbuljs/load-nyc-config": { "version": "1.1.0", diff --git a/package.json b/package.json index 9eaa08a..e3477b8 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@hckrnews/objects", "description": "Hack JavaScript objects", - "version": "2.2.5", + "version": "2.3.0", "author": { "name": "Pieter Wigboldus", "url": "https://hckr.news/" @@ -78,6 +78,6 @@ "flat" ], "dependencies": { - "@hckrnews/validator": "^4.2.3" + "@hckrnews/validator": "^4.2.5" } } diff --git a/src/__tests__/validate-objects.spec.js b/src/__tests__/validate-objects.spec.js index 660d4ac..b2d2e42 100644 --- a/src/__tests__/validate-objects.spec.js +++ b/src/__tests__/validate-objects.spec.js @@ -11,6 +11,7 @@ describe('Object test', () => { city: String, country: String, build: Function, + 'example?': 'mixed', }; const Address = Obj({ schema: addressSchema }); @@ -26,6 +27,7 @@ describe('Object test', () => { city: 'Example', country: 'The Netherlands', build, + example: 'ok', }); expect(myAddress).toEqual({ @@ -35,6 +37,7 @@ describe('Object test', () => { city: 'Example', country: 'The Netherlands', build, + example: 'ok', }); expect(myAddress.keys()).toEqual([ @@ -44,6 +47,7 @@ describe('Object test', () => { 'city', 'country', 'build', + 'example', ]); });