Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bs-awesomize

Package Overview
Dependencies
Maintainers
3
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bs-awesomize - npm Package Compare versions

Comparing version 1.4.5 to 1.4.6

22

__tests__/TestJavaScriptInterface.js

@@ -43,2 +43,24 @@ const Awesomize = require('../index');

});
describe('Sanitizer', () => {
const schema = Awesomize.compile({
'foo': {
read: ({ foo }) => foo,
sanitize: (x) => x,
validate: [ Awesomize.Validate.required ],
},
});
it('should resolve with the value', (done) => {
schema({ foo: 42 })
.then(result => {
expect(result.awesomeResultType).toBe('Ok');
expect(result.messages).toBeNull();
expect(result.data.foo).toBe(42);
done();
});
});
});
});

@@ -45,0 +67,0 @@

2

bsconfig.json
{
"name": "bs-awesomize",
"version": "1.4.5",
"version": "1.4.6",
"package-specs": {

@@ -5,0 +5,0 @@ "module": "commonjs",

{
"name": "bs-awesomize",
"version": "1.4.5",
"version": "1.4.6",
"description": "A ReasonML implementation of the Awesomize validation and data scrubbing library.",

@@ -5,0 +5,0 @@ "scripts": {

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