New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

commonform-validate

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

commonform-validate - npm Package Compare versions

Comparing version 0.5.0 to 0.6.0

11

index.js

@@ -39,3 +39,2 @@ var array = require('is-array')

var blank = exports.blank = simpleObject('blank')
var definition = exports.definition = simpleObject('definition')

@@ -45,2 +44,11 @@ var reference = exports.reference = simpleObject('reference')

function isEmptyString(argument) {
return ( argument === '' ) }
var blank = exports.blank = function(argument) {
return (
object(argument) &&
keyCount(argument) === 1 &&
hasProperty(argument, 'blank', isEmptyString) ) }
var form

@@ -104,2 +112,3 @@

!contiguous(elements, string) &&
!contiguous(elements, blank) &&
!spaceAbuttingChild(elements) &&

@@ -106,0 +115,0 @@ !leadingSpaceString(elements[0]) &&

2

package.json
{
"name": "commonform-validate",
"description": "validate Common Forms",
"version": "0.5.0",
"version": "0.6.0",
"author": {

@@ -6,0 +6,0 @@ "name": "Kyle E. Mitchell",

@@ -51,2 +51,9 @@ ```javascript

Or contiguous blanks:
```javascript
assert(
!valid.form({ content: [ { blank: '' }, { blank: '' } ] }),
'forms cannot contain contiguous blanks')
```
Nor can they contain empty strings:

@@ -108,3 +115,3 @@

'exclusively by arbitration in the ',
{ blank: 'Arbitration Venue' }, ', in accordance with the ' +
{ blank: '' }, ', in accordance with the ' +
'applicable rules of the American Arbitration Association ' +

@@ -118,3 +125,3 @@ 'then in effect.' ] }),

```javascript
assert(valid.blank({ blank: 'A' }))
assert(valid.blank({ blank: '' }))
```

@@ -121,0 +128,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