@orion-js/schema
Advanced tools
Comparing version 3.0.36 to 3.0.37
@@ -470,1 +470,14 @@ "use strict"; | ||
}); | ||
test('On blackbox allow use of custom clean', async () => { | ||
const schema = { | ||
info: { | ||
type: 'blackbox', | ||
optional: true, | ||
async clean(info, { doc }) { | ||
return { hello: 'world' }; | ||
} | ||
} | ||
}; | ||
const result = await (0, index_1.default)(schema, { info: { hello: 'night' } }); | ||
expect(result).toEqual({ info: { hello: 'world' } }); | ||
}); |
{ | ||
"name": "@orion-js/schema", | ||
"version": "3.0.36", | ||
"version": "3.0.37", | ||
"main": "lib/index.js", | ||
@@ -39,3 +39,3 @@ "types": "lib/index.d.ts", | ||
}, | ||
"gitHead": "7c921dbbf0ec679df743b9278abbf15cfcbac6ce" | ||
"gitHead": "741691d7603f3d42e6e3e8fa9dc0f9de51a29424" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
105757
2944