@middy/validator 4.0.1 → 4.0.2
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/package.json +5 -5
- package/transpile.cjs +9 -3
- package/transpile.js +4 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@middy/validator",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.2",
|
|
4
4
|
"description": "Validator middleware for the middy framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -73,13 +73,13 @@
|
|
|
73
73
|
},
|
|
74
74
|
"homepage": "https://middy.js.org",
|
|
75
75
|
"dependencies": {
|
|
76
|
-
"@middy/util": "4.0.
|
|
77
|
-
"ajv-cmd": "0.1.
|
|
76
|
+
"@middy/util": "4.0.2",
|
|
77
|
+
"ajv-cmd": "0.1.14"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
|
-
"@middy/core": "4.0.
|
|
80
|
+
"@middy/core": "4.0.2",
|
|
81
81
|
"@types/http-errors": "^2.0.0",
|
|
82
82
|
"ajv-bsontype": "^1.0.7"
|
|
83
83
|
},
|
|
84
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "c77c9413ecb80999a71b67ff97edac1fed2ca754"
|
|
85
85
|
}
|
package/transpile.cjs
CHANGED
|
@@ -12,7 +12,13 @@ _export(exports, {
|
|
|
12
12
|
transpileSchema: ()=>transpileSchema,
|
|
13
13
|
transpileLocale: ()=>transpileLocale
|
|
14
14
|
});
|
|
15
|
-
const
|
|
15
|
+
const _compileJs = _interopRequireDefault(require("ajv-cmd/compile.js"));
|
|
16
|
+
const _ftlJs = _interopRequireDefault(require("ajv-cmd/ftl.js"));
|
|
17
|
+
function _interopRequireDefault(obj) {
|
|
18
|
+
return obj && obj.__esModule ? obj : {
|
|
19
|
+
default: obj
|
|
20
|
+
};
|
|
21
|
+
}
|
|
16
22
|
const ajvDefaults = {
|
|
17
23
|
strict: true,
|
|
18
24
|
coerceTypes: 'array',
|
|
@@ -25,9 +31,9 @@ const transpileSchema = (schema, ajvOptions)=>{
|
|
|
25
31
|
...ajvDefaults,
|
|
26
32
|
...ajvOptions
|
|
27
33
|
};
|
|
28
|
-
return (0,
|
|
34
|
+
return (0, _compileJs.default)(schema, options);
|
|
29
35
|
};
|
|
30
|
-
const transpileLocale =
|
|
36
|
+
const transpileLocale = _ftlJs.default;
|
|
31
37
|
|
|
32
38
|
|
|
33
39
|
//# sourceMappingURL=transpile.cjs.map
|
package/transpile.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import compileSchema from 'ajv-cmd/compile.js';
|
|
2
|
+
import transpileFTL from 'ajv-cmd/ftl.js';
|
|
2
3
|
const ajvDefaults = {
|
|
3
4
|
strict: true,
|
|
4
5
|
coerceTypes: 'array',
|
|
@@ -11,9 +12,9 @@ export const transpileSchema = (schema, ajvOptions)=>{
|
|
|
11
12
|
...ajvDefaults,
|
|
12
13
|
...ajvOptions
|
|
13
14
|
};
|
|
14
|
-
return
|
|
15
|
+
return compileSchema(schema, options);
|
|
15
16
|
};
|
|
16
|
-
export const transpileLocale =
|
|
17
|
+
export const transpileLocale = transpileFTL;
|
|
17
18
|
|
|
18
19
|
|
|
19
20
|
//# sourceMappingURL=transpile.js.map
|