commonform-predicate
Advanced tools
Comparing version 1.0.0 to 2.0.0
@@ -30,2 +30,4 @@ /* Copyright 2015 Kyle E. Mitchell | ||
exports.component = has('repository') | ||
exports.form = has('content') | ||
@@ -32,0 +34,0 @@ |
{ | ||
"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)) | ||
``` |
14507
29
52
4