ql.io-uri-template
Advanced tools
Comparing version 0.4.2 to 0.4.3
@@ -194,3 +194,13 @@ module.exports = (function(){ | ||
// But is the token multivalued? | ||
if(val.length === 1) { | ||
if(val.length === 0) { | ||
throw { | ||
error: 'Token ' + ele.variable + ' not specified. Processed ' + str | ||
} | ||
} | ||
else if(val.length === 1) { | ||
if(!val[0] && ele.required) { | ||
throw { | ||
error: 'Token ' + ele.variable + ' not specified. Processed ' + str | ||
} | ||
} | ||
str = _append(str, val, encode); | ||
@@ -197,0 +207,0 @@ } |
@@ -5,3 +5,3 @@ { | ||
"name": "ql.io-uri-template", | ||
"version": "0.4.2", | ||
"version": "0.4.3", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "type": "git", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
38941
791