diff --git a/package.json b/package.json index eb76b18..041375a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@synatic/schema-magic", - "version": "1.0.2", + "version": "1.1.0", "description": "JSON Schema Utilities", "main": "index.js", "files": [ @@ -46,22 +46,22 @@ "@synatic/type-magic": "^1.0.0", "ajv": "6.12.6", "ajv-keywords": "3.5.2", - "bson-objectid": "2.0.2", + "bson-objectid": "2.0.3", "check-types": "11.1.2", "clone-deep": "4.0.1", - "cron-parser": "3.5.0", - "jsonpath-plus": "5.0.7", + "cron-parser": "4.4.0", + "jsonpath-plus": "6.0.1", "moment": "2.29.3", "moment-timezone": "0.5.34", - "underscore": "1.13.3", + "underscore": "1.13.4", "underscore.string": "3.3.6" }, "devDependencies": { - "eslint": "^8.8.0", + "eslint": "^8.17.0", "eslint-config-google": "^0.14.0", - "eslint-config-prettier": "^8.1.0", - "mocha": "^9.1.0", + "eslint-config-prettier": "^8.5.0", + "mocha": "^10.0.0", "nyc": "^15.1.0", - "prettier": "^2.2.1" + "prettier": "^2.6.2" } } diff --git a/test/test.js b/test/test.js index d178241..0a46119 100644 --- a/test/test.js +++ b/test/test.js @@ -2415,7 +2415,7 @@ describe('Schema Magic', function () { assert.deepEqual(invalid, null, 'Invalid objectid validate'); }); - it('check an ivalid objectid', function () { + it('check an invalid objectid', function () { const invalid = SchemaMagic.validate( { val: '58c246244d18c88838c67f', @@ -2432,7 +2432,7 @@ describe('Schema Magic', function () { assert(invalid, 'Invalid objectid validate'); }); - it('check an ivalid objectid when null', function () { + it('check an invalid objectid when null', function () { const invalid = SchemaMagic.validate( { val: null, @@ -2465,7 +2465,7 @@ describe('Schema Magic', function () { assert(!invalid, 'Invalid cron validate'); }); - it('check an ivalid cron', function () { + it('check an invalid cron', function () { const invalid = SchemaMagic.validate( { val: '0 0 * * x x x', @@ -2499,7 +2499,7 @@ describe('Schema Magic', function () { assert(!invalid, 'Invalid timezone validate'); }); - it('check an ivalid timezone', function () { + it('check an invalid timezone', function () { const invalid = SchemaMagic.validate( { val: 'America/xxxx',