diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index 2c50c7a..b45ef73 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -2,4 +2,3 @@ github: [w3nl] patreon: w3news -buymeacoffee: https://www.buymeacoffee.com/hckrnews diff --git a/.nvmrc b/.nvmrc index d5a1596..8783404 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -20.10.0 +20.12.2 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index cfb2d32..5b1c4c5 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,3 +1,3 @@ # Contributing -HckrNews Validator is Free and Open Source Software. Issues and pull requests are more than welcome! +TroJS Validator is Free and Open Source Software. Issues and pull requests are more than welcome! diff --git a/LICENSE b/LICENSE index a8fba07..a490ee1 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2021 Hckr.News +Copyright (c) 2024 TroJS Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index da282c6..ff8a400 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# Object validator by hckr.news +# Object validator by TroJS -[![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coveralls Status][coveralls-image]][coveralls-url] [![Scrutinizer Code Quality][scrutinizer-image]][scrutinizer-url] +[![NPM version][npm-image]][npm-url] Validate the object values by a schema. I hope you like it. @@ -10,14 +10,13 @@ I hope you like it. If it has saved you development time, please consider [sponsoring the project](https://github.com/sponsors/w3nl) with GitHub sponsors! -But me a coffee/book: https://www.buymeacoffee.com/hckrnews Or on patreon: https://patreon.com/w3news ## Installation -`npm install @hckrnews/validator` +`npm install @trojs/validator` or -`yarn add @hckrnews/validator` +`yarn add @trojs/validator` ## Test the package @@ -101,7 +100,7 @@ const personObj = { country: "Somewehere" }, companies: [ - { name: "Example company 1", website: "https://hckr.news" } + { name: "Example company 1", website: "https://trojs.org" } { name: "Example company 2" } ] } @@ -124,7 +123,7 @@ const persons = [ country: "Somewehere" }, companies: [ - { name: "Example company 1", website: "https://hckr.news" } + { name: "Example company 1", website: "https://trojs.org" } { name: "Example company 2" } ] } @@ -169,7 +168,7 @@ const persons = [ country: "Somewehere" }, companies: [ - { name: "Example company 1", website: "https://hckr.news" } + { name: "Example company 1", website: "https://trojs.org" } { name: "Example company 2" } ] } @@ -211,11 +210,5 @@ Available types: You can check for multiple types. e.g. `function|async` so it can receive a normal function and also a sync function -[npm-url]: https://www.npmjs.com/package/@hckrnews/validator -[npm-image]: https://img.shields.io/npm/v/@hckrnews/validator.svg -[travis-url]: https://travis-ci.org/hckrnews/validator -[travis-image]: https://img.shields.io/travis/hckrnews/validator/master.svg -[coveralls-url]: https://coveralls.io/r/hckrnews/validator -[coveralls-image]: https://img.shields.io/coveralls/hckrnews/validator/master.svg -[scrutinizer-url]: https://scrutinizer-ci.com/g/hckrnews/validator/?branch=master -[scrutinizer-image]: https://scrutinizer-ci.com/g/hckrnews/validator/badges/quality-score.png?b=master +[npm-url]: https://www.npmjs.com/package/@trojs/validator +[npm-image]: https://img.shields.io/npm/v/@trojs/validator.svg diff --git a/package.json b/package.json index 7341a43..e716d43 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "@hckrnews/validator", + "name": "@trojs/validator", "version": "9.0.4", "description": "Object validator", "main": "src/validator.js", @@ -23,7 +23,7 @@ }, "author": { "name": "Pieter Wigboldus", - "url": "https://hckr.news/" + "url": "https://trojs.org/" }, "license": "MIT", "bugs": { diff --git a/tests/unit/validator.spec.js b/tests/unit/validator.spec.js index 49805f2..51f5ee1 100644 --- a/tests/unit/validator.spec.js +++ b/tests/unit/validator.spec.js @@ -193,7 +193,7 @@ const testCases = [ country: 'Somewehere', }, companies: [ - { name: 'Example', website: new URL('https://hckr.news') }, + { name: 'Example', website: new URL('https://trojs.org') }, ], }, schema: personSchema,