Comparing version 0.0.5 to 0.0.6
@@ -14,3 +14,3 @@ #!/usr/bin/env node | ||
var name = "ask-json"; | ||
var version = "0.0.5"; | ||
var version = "0.0.6"; | ||
@@ -17,0 +17,0 @@ var ensureFile = (filePath) => { |
{ | ||
"name": "ask-json", | ||
"description": "Easy interactive prompts to create and validate data using JSON schema", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"author": "Jon McClure <jon.r.mcclure@gmail.com>", | ||
@@ -6,0 +6,0 @@ "homepage": "https://github.com/reuters-graphics/ask-json", |
@@ -107,7 +107,8 @@ ![](badge.svg) | ||
"type": "array", | ||
"items": [{ | ||
"type": "number" | ||
}, { | ||
"type": "string" | ||
}] | ||
"items": { | ||
"oneOf": [ | ||
{ "type": "number"}, | ||
{ "type": "string"} | ||
] | ||
} | ||
} | ||
@@ -153,4 +154,4 @@ ``` | ||
message: (variablePath, invalidMessage = null) => { | ||
if(!invalidMessage) return 'What\'s your email?' | ||
return `What\'s your email? (${invalidMessage})` | ||
if(!invalidMessage) return 'What\'s your email?'; | ||
return `What\'s your email? (${invalidMessage})`; | ||
} | ||
@@ -157,0 +158,0 @@ } |
21532
177