@scvo/router
Advanced tools
Comparing version 1.1.9 to 1.1.10
@@ -174,3 +174,9 @@ "use strict"; | ||
var newParam = param.substr(0, param.length - 2); | ||
query[newParam] = query[param]; | ||
var value = query[param]; | ||
if (!Array.isArray) { | ||
query[newParam] = [value]; | ||
} | ||
else { | ||
query[newParam] = value; | ||
} | ||
delete query[param]; | ||
@@ -177,0 +183,0 @@ } |
{ | ||
"name": "@scvo/router", | ||
"version": "1.1.9", | ||
"version": "1.1.10", | ||
"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", |
@@ -160,3 +160,8 @@ // System imports | ||
var newParam = param.substr(0, param.length - 2); | ||
query[newParam] = query[param]; | ||
var value = query[param]; | ||
if (!Array.isArray) { | ||
query[newParam] = [value]; | ||
} else { | ||
query[newParam] = value; | ||
} | ||
delete query[param]; | ||
@@ -163,0 +168,0 @@ } |
Sorry, the diff of this file is not supported yet
331732
2947