@zambezi/address
Advanced tools
Comparing version 2.0.2-url-parsing.0 to 2.0.2-url-parsing.1
@@ -728,3 +728,9 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
function decode(value) { | ||
return value ? decodeURIComponent(value) : '' | ||
if (value) { | ||
return String(value).replace(/%[0-9a-fA-F]{2}/g, function(match) { | ||
return decodeURIComponent(match) | ||
}) | ||
} else { | ||
return '' | ||
} | ||
} | ||
@@ -754,3 +760,3 @@ }.call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) | ||
function encodeKV(v) { | ||
return encode(key) + '=' + encode(v) | ||
return v? encode(key) + '=' + encode(v) : encode(key) | ||
} | ||
@@ -757,0 +763,0 @@ } |
{ | ||
"name": "@zambezi/address", | ||
"version": "2.0.2-url-parsing.0", | ||
"version": "2.0.2-url-parsing.1", | ||
"description": "API for nap resources", | ||
@@ -5,0 +5,0 @@ "main": "lib/address.js", |
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
89487
1086