isvalid 3.2.0 → 3.2.1

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/lib/formalize.js +1 -1
  2. package/package.json +1 -1
package/lib/formalize.js CHANGED
@@ -307,7 +307,7 @@ const formalizeAny = (schema, options = {}) => {
307
307
 
308
308
  exports = module.exports = (schema, options = {}) => {
309
309
  return formalizeAny(schema, Object.assign({}, options, {
310
- plugins: plugins._plugins.concat(options.plugins || [])
310
+ plugins: plugins._plugins.concat((options.plugins || []).map((plugin) => plugin(utils)))
311
311
  }));
312
312
  };
313
313
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isvalid",
3
- "version": "3.2.0",
3
+ "version": "3.2.1",
4
4
  "description": "Async JSON validation library for node.js.",
5
5
  "main": "./index.js",
6
6
  "keywords": [