Socket
Socket
Sign inDemoInstall

commonform-predicate

Package Overview
Dependencies
1
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.0.0 to 6.0.0

8

index.js

@@ -8,8 +8,8 @@ var has = require('has')

exports.url = function (argument) {
exports.link = function (argument) {
return (
has(argument, 'url') &&
has(argument, 'link') &&
(
argument.url.indexOf('https://') === 0 ||
argument.url.indexOf('http://') === 0
argument.link.indexOf('https://') === 0 ||
argument.link.indexOf('http://') === 0
)

@@ -16,0 +16,0 @@ )

{
"name": "commonform-predicate",
"description": "distinguish Common Form content objects",
"version": "5.0.0",
"version": "6.0.0",
"author": "Kyle E. Mitchell <kyle@kemitchell.com> (http://kemitchell.com)",

@@ -6,0 +6,0 @@ "devDependencies": {

@@ -27,5 +27,5 @@ ```javascript

assert(predicate.url({ url: 'https://example.com' }))
assert(predicate.url({ url: 'http://example.com' }))
assert(!predicate.url(invalid))
assert(predicate.link({ link: 'https://example.com' }))
assert(predicate.link({ link: 'http://example.com' }))
assert(!predicate.link(invalid))

@@ -32,0 +32,0 @@ assert(predicate.child({ heading: 'Summary', form: validForm }))

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc