Socket
Socket
Sign inDemoInstall

commonform-predicate

Package Overview
Dependencies
0
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 2.0.0

2

index.js

@@ -30,2 +30,4 @@ /* Copyright 2015 Kyle E. Mitchell

exports.component = has('repository')
exports.form = has('content')

@@ -32,0 +34,0 @@

10

package.json
{
"name": "commonform-predicate",
"description": "distinguish Common Form content objects",
"version": "1.0.0",
"version": "2.0.0",
"author": "Kyle E. Mitchell <kyle@kemitchell.com> (http://kemitchell.com)",
"devDependencies": {
"defence-cli": "~1.0.1",
"replace-require-self": "~1.0.0",
"defence-cli": "^1.0.5",
"replace-require-self": "^1.0.1",
"standard": "^8.0.0-beta.5"

@@ -13,3 +13,2 @@ },

"LICENSE",
"NOTICE",
"README.md",

@@ -29,4 +28,5 @@ "index.js"

"scripts": {
"lint": "standard"
"lint": "standard",
"test": "defence -i javascript README.md | replace-require-self | node"
}
}

@@ -30,4 +30,23 @@ ```javascript

assert(predicate.component({
heading: 'Warranty Disclaimer',
repository: 'api.commonform.org',
publisher: 'kemitchell',
project: 'orthodox-software-copyright-license',
edition: '1e',
upgrade: 'yes',
substitutions: {
terms: {
'Licensor': 'Vendor',
'Licensee': 'Customer',
'Program': 'Software'
},
headings: {
'Express Warranties': 'Guarantees'
}
}
}))
assert(predicate.text('Text'))
assert(!predicate.text(null))
```
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