@carecard/validate 3.1.16 → 3.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/auto-draft-pr.yml +114 -0
- package/.github/workflows/ci.yml +15 -15
- package/.github/workflows/publish.yml +24 -24
- package/.prettierrc.js +11 -10
- package/eslint.config.mjs +8 -8
- package/index.d.ts +76 -30
- package/index.js +6 -4
- package/lib/validate.js +131 -131
- package/lib/validateProperties.js +218 -218
- package/lib/validateWhitelistProperties.js +221 -0
- package/package.json +41 -38
package/package.json
CHANGED
|
@@ -1,40 +1,43 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
2
|
+
"name": "@carecard/validate",
|
|
3
|
+
"version": "3.1.17",
|
|
4
|
+
"repository": {
|
|
5
|
+
"type": "git",
|
|
6
|
+
"url": "git+https://github.com/CareCard-ca/pkg-validate.git"
|
|
7
|
+
},
|
|
8
|
+
"description": "Validate data",
|
|
9
|
+
"main": "index.js",
|
|
10
|
+
"types": "index.d.ts",
|
|
11
|
+
"scripts": {
|
|
12
|
+
"test": "mocha --recursive",
|
|
13
|
+
"test:types": "tsc --noEmit && echo \"\\n ✔ Type tests passed: tsc --noEmit reported 0 errors across index.d.ts and test/**/*.ts\\n\"",
|
|
14
|
+
"test:coverage": "tsc --noEmit && export NODE_ENV=test && nyc mocha --recursive",
|
|
15
|
+
"test:All": "npm run test && npm run test:types",
|
|
16
|
+
"format": "prettier --write .",
|
|
17
|
+
"format:check": "prettier --check .",
|
|
18
|
+
"prepare": "husky",
|
|
19
|
+
"lint:fix": "eslint --fix",
|
|
20
|
+
"lint": "eslint"
|
|
21
|
+
},
|
|
22
|
+
"keywords": [
|
|
23
|
+
"validate",
|
|
24
|
+
"data"
|
|
25
|
+
],
|
|
26
|
+
"author": "CareCard team",
|
|
27
|
+
"license": "ISC",
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"@types/mocha": "10.0.10",
|
|
30
|
+
"@types/node": "25.6.2",
|
|
31
|
+
"eslint": "9.39.4",
|
|
32
|
+
"husky": "9.1.7",
|
|
33
|
+
"lint-staged": "17.0.3",
|
|
34
|
+
"mocha": "11.7.5",
|
|
35
|
+
"nyc": "18.0.0",
|
|
36
|
+
"prettier": "3.8.3",
|
|
37
|
+
"ts-node": "10.9.2",
|
|
38
|
+
"typescript": "5.9.3"
|
|
39
|
+
},
|
|
40
|
+
"dependencies": {
|
|
41
|
+
"@carecard/common-util": "^3.1.13"
|
|
42
|
+
}
|
|
40
43
|
}
|