From 6811da079c6ded196f62d46b87c705712d749637 Mon Sep 17 00:00:00 2001 From: anuveyatsu Date: Thu, 15 Mar 2018 13:54:29 +0600 Subject: [PATCH] [v0.8.6][xs]: new version re update in tableschema library - IP addresses are not considered as URIs anymore - when validation fails for incorrect resource.path property, we show more details --- bin/data-validate.js | 4 ++++ package.json | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/bin/data-validate.js b/bin/data-validate.js index 909a679..9c2c4d1 100644 --- a/bin/data-validate.js +++ b/bin/data-validate.js @@ -72,6 +72,10 @@ validator.validate().then(result => { } else { error(result) + // Show more details of error when `path` property doesn't match the pattern: + if (result[0].toString().includes('/resources/0/path')) { + error('`path` property does not match pattern "^(?=^[^./~])(^((?!\\.{2}).)*$).*$"') + } } } }).catch(err => { diff --git a/package.json b/package.json index a748105..320203c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "data-cli", - "version": "0.8.5", + "version": "0.8.6", "description": "CLI for working with data packages", "main": "./lib/index.js", "bin": { @@ -72,8 +72,8 @@ "boxen": "^1.3.0", "chalk": "^2.3.0", "clipboardy": "^1.1.4", - "data.js": "^0.11.0", - "datahub-client": "^0.4.1", + "data.js": "^0.11.1", + "datahub-client": "^0.4.2", "human-readable-ids": "^1.0.3", "inquirer": "^5.1.0", "inquirer-test": "^2.0.1",