alchemymvc 1.3.8 → 1.3.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -336,7 +336,7 @@ Router.setMethod(function routeConfig(name, socket_route) {
336
336
  *
337
337
  * @author Jelle De Loecker <jelle@elevenways.be>
338
338
  * @since 0.2.0
339
- * @version 1.3.7
339
+ * @version 1.3.9
340
340
  *
341
341
  * @param {String} name
342
342
  * @param {Object} parameters
@@ -345,8 +345,7 @@ Router.setMethod(function routeConfig(name, socket_route) {
345
345
  */
346
346
  Router.setMethod(function routeUrl(name, parameters, options) {
347
347
 
348
- var parameters,
349
- base_url,
348
+ var base_url,
350
349
  locales,
351
350
  config,
352
351
  url,
@@ -370,6 +369,10 @@ Router.setMethod(function routeUrl(name, parameters, options) {
370
369
  locales = [];
371
370
  }
372
371
 
372
+ if (parameters) {
373
+ parameters = {...parameters};
374
+ }
375
+
373
376
  let chosen_prefix;
374
377
 
375
378
  if (config != null) {
@@ -744,7 +747,7 @@ Router.setMethod(function getRouteVariables() {
744
747
  let params,
745
748
  route,
746
749
  url;
747
-
750
+
748
751
  if (this.view_render?.variables?.__route) {
749
752
  route = this.view_render.variables.__route;
750
753
  params = this.view_render.variables.__urlparams;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "alchemymvc",
3
3
  "description": "MVC framework for Node.js",
4
- "version": "1.3.8",
4
+ "version": "1.3.9",
5
5
  "author": "Jelle De Loecker <jelle@elevenways.be>",
6
6
  "keywords": [
7
7
  "alchemy",