@awsless/validate 0.1.2 → 0.1.3

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.
Files changed (2) hide show
  1. package/README.MD +22 -0
  2. package/package.json +6 -6
package/README.MD CHANGED
@@ -0,0 +1,22 @@
1
+ # @awsless/validate
2
+
3
+ The @awsless/validate package exports the valibot API with some additional custom schema's for working with JSON, Duration, BigFloat, and AWS.
4
+
5
+ ## Setup
6
+
7
+ Install with (NPM):
8
+
9
+ ```
10
+ npm i @awsless/validate
11
+ ```
12
+
13
+ ## Basic Usage
14
+
15
+ ```ts
16
+ import { parse, bigfloat } from '@awsless/validate'
17
+ import { BigFloat } from '@awsless/big-float'
18
+
19
+ const input = new BigFloat(100)
20
+ const schema = bigfloat()
21
+ const output = parse(schema, input)
22
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awsless/validate",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "repository": {
@@ -26,14 +26,14 @@
26
26
  "peerDependencies": {
27
27
  "@awsless/big-float": "^0.1.5",
28
28
  "@awsless/duration": "^0.0.4",
29
- "@awsless/json": "^0.0.10",
30
- "@awsless/dynamodb": "^0.3.2"
29
+ "@awsless/dynamodb": "^0.3.3",
30
+ "@awsless/json": "^0.0.10"
31
31
  },
32
32
  "devDependencies": {
33
- "@awsless/duration": "^0.0.4",
34
- "@awsless/dynamodb": "^0.3.2",
35
33
  "@awsless/big-float": "^0.1.5",
36
- "@awsless/json": "^0.0.10"
34
+ "@awsless/dynamodb": "^0.3.3",
35
+ "@awsless/json": "^0.0.10",
36
+ "@awsless/duration": "^0.0.4"
37
37
  },
38
38
  "dependencies": {
39
39
  "valibot": "^1.2.0"