@middy/validator 4.0.1 → 4.0.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@middy/validator",
3
- "version": "4.0.1",
3
+ "version": "4.0.3",
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.1",
77
- "ajv-cmd": "0.1.13"
76
+ "@middy/util": "4.0.3",
77
+ "ajv-cmd": "0.1.14"
78
78
  },
79
79
  "devDependencies": {
80
- "@middy/core": "4.0.1",
80
+ "@middy/core": "4.0.3",
81
81
  "@types/http-errors": "^2.0.0",
82
82
  "ajv-bsontype": "^1.0.7"
83
83
  },
84
- "gitHead": "c5ece2bfbb0d607dcdea5685bf194a6cc19acc8d"
84
+ "gitHead": "a12178ecb95de3ef6422c0eadf89355c981440c2"
85
85
  }
package/transpile.cjs CHANGED
@@ -12,7 +12,13 @@ _export(exports, {
12
12
  transpileSchema: ()=>transpileSchema,
13
13
  transpileLocale: ()=>transpileLocale
14
14
  });
15
- const _ajvCmd = require("ajv-cmd");
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, _ajvCmd.compile)(schema, options);
34
+ return (0, _compileJs.default)(schema, options);
29
35
  };
30
- const transpileLocale = _ajvCmd.ftl;
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 { compile, ftl } from 'ajv-cmd';
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 compile(schema, options);
15
+ return compileSchema(schema, options);
15
16
  };
16
- export const transpileLocale = ftl;
17
+ export const transpileLocale = transpileFTL;
17
18
 
18
19
 
19
20
  //# sourceMappingURL=transpile.js.map