Socket
Socket
Sign inDemoInstall

@orion-js/schema

Package Overview
Dependencies
Maintainers
3
Versions
110
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@orion-js/schema - npm Package Compare versions

Comparing version 3.0.36 to 3.0.37

13

lib/clean/index.test.js

@@ -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' } });
});

4

package.json
{
"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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc