is-valid-nip
Advanced tools
Comparing version 1.2.3 to 1.2.4
{ | ||
"name": "is-valid-nip", | ||
"version": "1.2.3", | ||
"version": "1.2.4", | ||
"description": "Check if a number is a valid Numer Identyfikacji Podatkowej (NIP)", | ||
@@ -16,5 +16,6 @@ "type": "module", | ||
"scripts": { | ||
"build": "yarn build-esm && yarn build-cjs", | ||
"build-esm": "tsc --project tsconfig.build.json --outDir dist/esm --module esnext", | ||
"build-cjs": "tsc --project tsconfig.build.json --outDir dist/cjs --module commonjs && echo '{\n \"type\": \"commonjs\"\n}' > dist/cjs/package.json", | ||
"build": "yarn build-esm && yarn build-cjs && yarn build-cjs-package", | ||
"build-esm": "tsc --project tsconfig.build.json --outDir dist/esm", | ||
"build-cjs": "tsc --project tsconfig.build.json --outDir dist/cjs --module commonjs --verbatimModuleSyntax false", | ||
"build-cjs-package": "echo '{\n \"type\": \"commonjs\"\n}' > dist/cjs/package.json", | ||
"clean": "rimraf dist", | ||
@@ -26,3 +27,3 @@ "lint": "eslint .", | ||
"tsc": "tsc --noEmit", | ||
"unit": "vitest run" | ||
"unit": "vitest" | ||
}, | ||
@@ -40,10 +41,14 @@ "keywords": [ | ||
"eslint": "^8.26.0", | ||
"eslint-config-wojtekmaj": "^0.8.2", | ||
"eslint-config-wojtekmaj": "^0.9.0", | ||
"husky": "^8.0.0", | ||
"prettier": "^2.7.0", | ||
"pretty-quick": "^3.1.0", | ||
"lint-staged": "^14.0.0", | ||
"prettier": "^3.0.0", | ||
"rimraf": "^3.0.0", | ||
"typescript": "^4.9.4", | ||
"vitest": "^0.29.2" | ||
"typescript": "^5.0.0", | ||
"vitest": "^0.34.0" | ||
}, | ||
"publishConfig": { | ||
"access": "public", | ||
"provenance": true | ||
}, | ||
"files": [ | ||
@@ -50,0 +55,0 @@ "dist", |
@@ -20,11 +20,8 @@ [![npm](https://img.shields.io/npm/v/is-valid-nip.svg)](https://www.npmjs.com/package/is-valid-nip) ![downloads](https://img.shields.io/npm/dt/is-valid-nip.svg) [![CI](https://github.com/wojtekmaj/is-valid-nip/workflows/CI/badge.svg)](https://github.com/wojtekmaj/is-valid-nip/actions) | ||
```js | ||
> isValidNIP('5252611332'); | ||
< true | ||
```ts | ||
isValidNIP('5252611332'); // true | ||
> isValidNIP('525-261-13-32'); | ||
< true | ||
isValidNIP('525-261-13-32'); // true | ||
> isValidNIP('525-26-11-332'); | ||
< true | ||
isValidNIP('525-26-11-332'); // true | ||
``` | ||
@@ -40,11 +37,9 @@ | ||
<tr> | ||
<td> | ||
<img src="https://github.com/wojtekmaj.png?s=100" width="100"> | ||
<td > | ||
<img src="https://avatars.githubusercontent.com/u/5426427?v=4&s=128" width="64" height="64" alt="Wojciech Maj"> | ||
</td> | ||
<td> | ||
Wojciech Maj<br /> | ||
<a href="mailto:kontakt@wojtekmaj.pl">kontakt@wojtekmaj.pl</a><br /> | ||
<a href="https://wojtekmaj.pl">https://wojtekmaj.pl</a> | ||
<a href="https://github.com/wojtekmaj">Wojciech Maj</a> | ||
</td> | ||
</tr> | ||
</table> |
import { describe, expect, it } from 'vitest'; | ||
import isValidNIP from './index'; | ||
import isValidNIP from './index.js'; | ||
@@ -4,0 +4,0 @@ describe('isValidNIP', () => { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7729
44