-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: prevent git from ignoring src/index.js file * chore: remove unused exclusion from nyc config * chore: replace travis-ci with github actions * chore: fix issue with github workflow config * chore: fix condition for coverage generation and sending * chore: treat node version as int * docs: replace travis with github actions badge * chore: add npm publish github action * chore: remove auto-generated files * chore: improve github actions styles * chore: use correct repo url to prevent unecessary redirect * chore: lint package.json file * chore: add new line at end of file * feat(isMobilePhone): update de-CH, add fr-CH, it-CH locales (#1554) * fix(isMobilePhone): update de-CH locale (#1549) feat(isMobilePhone): add fr-CH locale (#1549) feat(isMobilePhone): add it-CH locale (#1549) * fix(isMobilePhone): update de-CH, fr-CH and it-CH locale in validator.min.js(#1549) * fix(isMobilePhone): update fr-CH and it-CH locale aliases (#1549) Co-authored-by: Ashutosh Kumar <[email protected]> * feat(isLicensePlate): new validator 🎉 (#1495) * Added isLicensePlate check with german locale * de-LI (Liechtenstein) validator * Added albanian number plates * reversed changes in index.js * reversed changes in index.js * Refactored de-DE into one big regex, expanded tests fot de-DE * added pt-PT locale * Fixed coverage problem * feat(isLicensePlate): clean build * coverage is now 100% * Update README.md * Update README.md * fix(isTaxID): fix el-GR locale when checksum is 10 (#1529) Add correct tax identifier to demonstrate issue and fix. Thanks to: Panos Papadopoulos * feat(isMobileNumber): add support new telco numbers for VN locale (#1575) * Support new VN mobile phone 087 (https://didong.itelecom.vn/) * Add test for new telco number Co-authored-by: Kyle Dinh <[email protected]> * chore: set a fixed ubuntu version instead of relying on latest Co-authored-by: Ashutosh Kumar <[email protected]> Co-authored-by: Ashutosh Kumar <[email protected]> Co-authored-by: Michael Firlus <[email protected]> Co-authored-by: Diomidis Spinellis <[email protected]> Co-authored-by: Kyle Dinh <[email protected]> Co-authored-by: Kyle Dinh <[email protected]>
- Loading branch information
1 parent
787df19
commit 9debd5e
Showing
16 changed files
with
522 additions
and
5,103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: CI | ||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
branches: [master] | ||
jobs: | ||
test: | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
matrix: | ||
node-version: [14, 12, 10, 8, 6] | ||
steps: | ||
- name: Setup Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2-beta | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
check-latest: true | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
- name: Install Dependencies | ||
run: npm install | ||
- name: Run Tests | ||
run: npm test | ||
- if: matrix.node-version == 14 | ||
name: Generate coverage file | ||
run: npm run test:ci > coverage.lcov | ||
- if: matrix.node-version == 14 | ||
name: Send coverage info to Codecov | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
file: ./coverage.lcov |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: NPM Publish | ||
on: | ||
release: | ||
types: [created] | ||
jobs: | ||
publish: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Setup Node.js 14 | ||
uses: actions/setup-node@v2-beta | ||
with: | ||
node-version: 14 | ||
check-latest: true | ||
registry-url: https://registry.npmjs.org/ | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
- name: Install Dependencies | ||
run: npm install | ||
- name: Run Tests | ||
run: npm test | ||
- name: Publish Package to NPM Registry | ||
run: npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.NPM_SECRET}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,6 @@ package-lock.json | |
yarn.lock | ||
/es | ||
/lib | ||
/index.js | ||
validator.js | ||
validator.min.js | ||
index.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,9 +5,5 @@ | |
], | ||
"include": [ | ||
"src/**/*.js" | ||
], | ||
"exclude": [ | ||
"validator.js", | ||
"lib/**/*.js" | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "validator-js", | ||
"main": "validator.js", | ||
"homepage": "https://github.com/chriso/validator.js", | ||
"homepage": "https://github.com/validatorjs/validator.js", | ||
"authors": [ | ||
"Chris O'Hara <[email protected]>" | ||
], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
"description": "String validation and sanitization", | ||
"version": "13.5.1", | ||
"sideEffects": false, | ||
"homepage": "https://github.com/chriso/validator.js", | ||
"homepage": "https://github.com/validatorjs/validator.js", | ||
"files": [ | ||
"index.js", | ||
"es", | ||
|
@@ -25,18 +25,15 @@ | |
], | ||
"author": "Chris O'Hara <[email protected]>", | ||
"contributors": [ | ||
{ | ||
"name": "Anthony Nandaa", | ||
"url": "https://github.com/profnandaa" | ||
} | ||
"Anthony Nandaa (https://github.com/profnandaa)" | ||
], | ||
"main": "index.js", | ||
"bugs": { | ||
"url": "https://github.com/chriso/validator.js/issues" | ||
"url": "https://github.com/validatorjs/validator.js/issues" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/chriso/validator.js.git" | ||
"url": "git+https://github.com/validatorjs/validator.js.git" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.0.0", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.