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

validate-promise

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

validate-promise - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

package.json
{
"name": "validate-promise",
"version": "1.0.0",
"version": "1.0.1",
"description": "Promised based validaation library",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -6,5 +6,4 @@ # validation-promise

(still to do...)
```
npm install validation-promise
npm install validate-promise
```

@@ -24,7 +23,7 @@

}];
var data = {
age: '11'
};
validate(contract, data)

@@ -35,3 +34,3 @@ .then(() => {

.catch(error => {
// Validations failed - error is an object keyed on data keys, and containing an array of error messages.
// Validations failed - error is an object keyed on data keys, and containing an array of error messages.
});

@@ -38,0 +37,0 @@ ```

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