@aws-lambda-powertools/validation 0.0.0 → 2.18.0
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/LICENSE +14 -0
- package/README.md +276 -5
- package/lib/cjs/decorator.d.ts +138 -0
- package/lib/cjs/decorator.d.ts.map +1 -0
- package/lib/cjs/decorator.js +191 -0
- package/lib/cjs/errors.d.ts +74 -0
- package/lib/cjs/errors.d.ts.map +1 -0
- package/lib/cjs/errors.js +87 -0
- package/lib/cjs/middleware.d.ts +105 -0
- package/lib/cjs/middleware.d.ts.map +1 -0
- package/lib/cjs/middleware.js +148 -0
- package/lib/cjs/package.json +1 -0
- package/lib/cjs/types.d.ts +59 -0
- package/lib/cjs/types.d.ts.map +1 -0
- package/lib/cjs/types.js +2 -0
- package/lib/cjs/utils.d.ts +10 -0
- package/lib/cjs/utils.d.ts.map +1 -0
- package/lib/cjs/utils.js +18 -0
- package/lib/cjs/validate.d.ts +119 -0
- package/lib/cjs/validate.d.ts.map +1 -0
- package/lib/cjs/validate.js +154 -0
- package/lib/esm/decorator.d.ts +138 -0
- package/lib/esm/decorator.d.ts.map +1 -0
- package/lib/esm/decorator.js +189 -0
- package/lib/esm/errors.d.ts +74 -0
- package/lib/esm/errors.d.ts.map +1 -0
- package/lib/esm/errors.js +82 -0
- package/lib/esm/middleware.d.ts +105 -0
- package/lib/esm/middleware.d.ts.map +1 -0
- package/lib/esm/middleware.js +145 -0
- package/lib/esm/package.json +1 -0
- package/lib/esm/types.d.ts +59 -0
- package/lib/esm/types.d.ts.map +1 -0
- package/lib/esm/types.js +1 -0
- package/lib/esm/utils.d.ts +10 -0
- package/lib/esm/utils.d.ts.map +1 -0
- package/lib/esm/utils.js +15 -0
- package/lib/esm/validate.d.ts +119 -0
- package/lib/esm/validate.d.ts.map +1 -0
- package/lib/esm/validate.js +151 -0
- package/package.json +80 -37
- package/lib/index.d.ts +0 -0
- package/lib/index.js +0 -3
package/package.json
CHANGED
|
@@ -1,39 +1,82 @@
|
|
|
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
|
-
|
|
2
|
+
"name": "@aws-lambda-powertools/validation",
|
|
3
|
+
"version": "2.18.0",
|
|
4
|
+
"description": "An utility to validate events and responses using JSON Schemas",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "Amazon Web Services",
|
|
7
|
+
"url": "https://aws.amazon.com"
|
|
8
|
+
},
|
|
9
|
+
"license": "MIT-0",
|
|
10
|
+
"homepage": "https://github.com/aws-powertools/powertools-lambda-typescript#readme",
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "git+https://github.com/aws-powertools/powertools-lambda-typescript.git"
|
|
14
|
+
},
|
|
15
|
+
"bugs": {
|
|
16
|
+
"url": "https://github.com/aws-powertools/powertools-lambda-typescript/issues"
|
|
17
|
+
},
|
|
18
|
+
"keywords": [
|
|
19
|
+
"aws",
|
|
20
|
+
"lambda",
|
|
21
|
+
"powertools",
|
|
22
|
+
"json-schema",
|
|
23
|
+
"validation",
|
|
24
|
+
"event",
|
|
25
|
+
"handler",
|
|
26
|
+
"nodejs",
|
|
27
|
+
"serverless"
|
|
28
|
+
],
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"@aws-lambda-powertools/commons": "^2.18.0",
|
|
31
|
+
"@aws-lambda-powertools/jmespath": "^2.18.0",
|
|
32
|
+
"ajv": "^8.17.1"
|
|
33
|
+
},
|
|
34
|
+
"main": "./lib/cjs/index.js",
|
|
35
|
+
"types": "./lib/cjs/index.d.ts",
|
|
36
|
+
"files": [
|
|
37
|
+
"lib"
|
|
38
|
+
],
|
|
39
|
+
"type": "module",
|
|
40
|
+
"exports": {
|
|
41
|
+
".": {
|
|
42
|
+
"require": {
|
|
43
|
+
"types": "./lib/cjs/validate.d.ts",
|
|
44
|
+
"default": "./lib/cjs/validate.js"
|
|
45
|
+
},
|
|
46
|
+
"import": {
|
|
47
|
+
"types": "./lib/esm/validate.d.ts",
|
|
48
|
+
"default": "./lib/esm/validate.js"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"./middleware": {
|
|
52
|
+
"require": {
|
|
53
|
+
"types": "./lib/cjs/middleware.d.ts",
|
|
54
|
+
"default": "./lib/cjs/middleware.js"
|
|
55
|
+
},
|
|
56
|
+
"import": {
|
|
57
|
+
"types": "./lib/esm/middleware.d.ts",
|
|
58
|
+
"default": "./lib/esm/middleware.js"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"./errors": {
|
|
62
|
+
"require": {
|
|
63
|
+
"types": "./lib/cjs/errors.d.ts",
|
|
64
|
+
"default": "./lib/cjs/errors.js"
|
|
65
|
+
},
|
|
66
|
+
"import": {
|
|
67
|
+
"types": "./lib/esm/errors.d.ts",
|
|
68
|
+
"default": "./lib/esm/errors.js"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"./decorator": {
|
|
72
|
+
"require": {
|
|
73
|
+
"types": "./lib/cjs/decorator.d.ts",
|
|
74
|
+
"default": "./lib/cjs/decorator.js"
|
|
75
|
+
},
|
|
76
|
+
"import": {
|
|
77
|
+
"types": "./lib/esm/decorator.d.ts",
|
|
78
|
+
"default": "./lib/esm/decorator.js"
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
39
82
|
}
|
package/lib/index.d.ts
DELETED
|
File without changes
|
package/lib/index.js
DELETED