@awsless/validate 0.0.11 → 0.0.13

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/dist/index.cjs CHANGED
@@ -112,9 +112,7 @@ function duration(arg1, arg2) {
112
112
  const error = msg ?? "Invalid duration";
113
113
  return (0, import_valibot5.transform)(
114
114
  (0, import_valibot5.string)(error, [(0, import_valibot5.regex)(/^[0-9]+ (milliseconds?|seconds?|minutes?|hours?|days?)/, error)]),
115
- (value, { issues }) => {
116
- if (issues)
117
- return;
115
+ (value) => {
118
116
  return (0, import_duration.parse)(value);
119
117
  },
120
118
  pipe
package/dist/index.js CHANGED
@@ -85,9 +85,7 @@ function duration(arg1, arg2) {
85
85
  const error = msg ?? "Invalid duration";
86
86
  return transform5(
87
87
  string5(error, [regex(/^[0-9]+ (milliseconds?|seconds?|minutes?|hours?|days?)/, error)]),
88
- (value, { issues }) => {
89
- if (issues)
90
- return;
88
+ (value) => {
91
89
  return parse(value);
92
90
  },
93
91
  pipe
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awsless/validate",
3
- "version": "0.0.11",
3
+ "version": "0.0.13",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "repository": {
@@ -29,12 +29,12 @@
29
29
  "@awsless/dynamodb": "^0.0.42"
30
30
  },
31
31
  "devDependencies": {
32
- "@awsless/duration": "^0.0.1",
33
32
  "@awsless/big-float": "^0.0.4",
33
+ "@awsless/duration": "^0.0.1",
34
34
  "@awsless/dynamodb": "^0.0.42"
35
35
  },
36
36
  "dependencies": {
37
- "valibot": "^0.28.1"
37
+ "valibot": "^0.29.0"
38
38
  },
39
39
  "scripts": {
40
40
  "test": "pnpm code test",