karl-common-util
Advanced tools
Comparing version 1.5.11 to 1.7.0
@@ -108,3 +108,3 @@ "use strict"; | ||
if (!Array.isArray(v)) { | ||
v = encodeURI(v); | ||
v = encodeURIComponent(v); | ||
} else { | ||
@@ -114,7 +114,7 @@ v = v.map(function (d) { | ||
for (var k1 in d) { | ||
d[k1] = encodeURI(d[k1]); | ||
d[k1] = encodeURIComponent(d[k1]); | ||
} | ||
return d; | ||
} else { | ||
return encodeURI(d); | ||
return encodeURIComponent(d); | ||
} | ||
@@ -121,0 +121,0 @@ }); |
{ | ||
"name": "karl-common-util", | ||
"version": "1.5.11", | ||
"version": "1.7.0", | ||
"description": "karl common lib for client and server", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -71,3 +71,3 @@ import "isomorphic-fetch" | ||
if (!Array.isArray(v)) { | ||
v = encodeURI(v) | ||
v = encodeURIComponent(v) | ||
} else { | ||
@@ -77,7 +77,7 @@ v = v.map(d => { | ||
for (let k1 in d) { | ||
d[k1] = encodeURI(d[k1]) | ||
d[k1] = encodeURIComponent(d[k1]) | ||
} | ||
return d | ||
} else { | ||
return encodeURI(d) | ||
return encodeURIComponent(d) | ||
} | ||
@@ -84,0 +84,0 @@ }) |
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
64879