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

async-validate

Package Overview
Dependencies
Maintainers
1
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

async-validate - npm Package Compare versions

Comparing version 0.9.8 to 0.9.9

1

doc/readme/api.md

@@ -46,2 +46,3 @@ ### API

* `field`: Field name for the source object, default is `source` when not specified.
* `parent`: Parent object for the `source` value.
* `state`: Object to be used as the initial user data state.

@@ -48,0 +49,0 @@ * `vars`: Object map of variables to assign to each rule.

6

lib/schema.js

@@ -99,4 +99,4 @@ var iterator = require('./iterator')

if(assign && opts._parent && rule.field) {
opts._parent[rule.field] = assign;
if(assign && opts.parent && rule.field) {
opts.parent[rule.field] = assign;
}

@@ -240,3 +240,3 @@

options._parent = rule.value;
options.parent = rule.value;
options._deep = true;

@@ -243,0 +243,0 @@

{
"name": "async-validate",
"description": "Asynchronous validation for node and the browser",
"version": "0.9.8",
"version": "0.9.9",
"author": "muji <noop@xpm.io>",

@@ -6,0 +6,0 @@ "license": "MIT",

@@ -699,2 +699,3 @@ Table of Contents

* `field`: Field name for the source object, default is `source` when not specified.
* `parent`: Parent object for the `source` value.
* `state`: Object to be used as the initial user data state.

@@ -701,0 +702,0 @@ * `vars`: Object map of variables to assign to each rule.

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