swagger-router
Advanced tools
Comparing version 0.5.5 to 0.5.6
@@ -147,2 +147,15 @@ "use strict"; | ||
/** | ||
* Applies `decodeURIComponent` to the provided string | ||
* | ||
* @param data {string} data needed to be decoded. | ||
* @returns {string} | ||
*/ | ||
decode(data) { | ||
if (typeof data !== 'string') { | ||
return data; | ||
} | ||
return decodeURIComponent(data); | ||
}, | ||
// Private helpers | ||
@@ -149,0 +162,0 @@ _optionalPath(element) { |
{ | ||
"name": "swagger-router", | ||
"version": "0.5.5", | ||
"version": "0.5.6", | ||
"description": "An efficient swagger 2 based router with support for multiple APIs. For use in RESTBase.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
95670
26
2205