From e2a78abbace0bd6f6b3116c1e584bcb1cd85a867 Mon Sep 17 00:00:00 2001 From: Jacky Mo <> Date: Fri, 21 Sep 2018 01:22:16 -0400 Subject: [PATCH] Updated package version and readme file to reflect the new change in package name --- README.md | 6 +++--- package.json | 6 ++++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 026d48d..20d5f34 100644 --- a/README.md +++ b/README.md @@ -2,10 +2,10 @@ ##### This validation library allows user to validate wheather an object meets the declarative defined schema defintion. If the object satisfies the schema definition, an object is returned that confined to the schema. ## Installation and Usage -Install the library with `npm install --save schema-validator` or `yarn install schema-validator` +Install the library with `npm install --save @jackym/schema-validator` or `yarn add @jackym/schema-validator` ```javascript -import schemaValidator from 'schema-validator'; +import schemaValidator from '@jackym/schema-validator'; const obj = {}; const defintion = { name: { type: 'string' }, @@ -61,7 +61,7 @@ const definition = { /* * (Optional) - * if the field is required, and the value is null or underfined, then you can provide a default value + * if the field is required, and the value is null or underfined, then you can provide a default value * to suppress the validation error message */ default: 'any value' diff --git a/package.json b/package.json index 7b6b553..fa95c58 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "schema-validator", - "version": "1.0.0", + "name": "@jackym/schema-validator", + "version": "1.0.1", "description": "Validate an object against an user defined schema. If the object satisfies the schema, then a copy of the object that conforms to the schema is returned", "main": "dist/index-cjs.js", "module": "dist/index-esm.js", @@ -11,6 +11,8 @@ }, "keywords": [ "schema validator", + "object validator", + "object validation", "validator", "custom validator" ],