@scvo/router
Advanced tools
Comparing version 1.1.21 to 1.1.22
@@ -176,7 +176,10 @@ "use strict"; | ||
if (typeof query[newParam] === 'undefined' || query[newParam] === null) { | ||
query[newParam] = [value]; | ||
query[newParam] = value; | ||
} | ||
else if (!Array.isArray(query[newParam])) { | ||
query[newParam] = [query[newParam], value]; | ||
query[newParam] = value.push(query[newParam]); | ||
} | ||
else { | ||
query[newParam] = query[newParam].concat(value); | ||
} | ||
delete query[param]; | ||
@@ -183,0 +186,0 @@ } |
{ | ||
"name": "@scvo/router", | ||
"version": "1.1.21", | ||
"version": "1.1.22", | ||
"description": "A moderately oppinionated web application framework based around mapping routes to tasks and then rendering with handlebars", | ||
@@ -5,0 +5,0 @@ "main": "./build/index", |
@@ -162,5 +162,7 @@ // System imports | ||
if (typeof query[newParam] === 'undefined' || query[newParam] === null) { | ||
query[newParam] = [value]; | ||
query[newParam] = value; | ||
} else if (!Array.isArray(query[newParam])) { | ||
query[newParam] = [query[newParam], value]; | ||
query[newParam] = value.push(query[newParam]); | ||
} else { | ||
query[newParam] = query[newParam].concat(value); | ||
} | ||
@@ -167,0 +169,0 @@ delete query[param]; |
Sorry, the diff of this file is not supported yet
334017
2975