rest-api-handler
Advanced tools
Comparing version 1.8.0 to 1.8.1
@@ -5,2 +5,7 @@ # Change Log | ||
## [1.8.1] 2018-06-27 | ||
### Fixed | ||
- Encoding of get parameters | ||
## [1.8.0] 2018-05-31 | ||
@@ -7,0 +12,0 @@ ### Added |
@@ -403,3 +403,3 @@ 'use strict'; | ||
var value = parameters[key]; | ||
return key + '=' + encodeURI(typeof value === 'number' ? value.toString() : value); | ||
return key + '=' + encodeURIComponent(typeof value === 'number' ? value.toString() : value); | ||
}).join('&'); | ||
@@ -406,0 +406,0 @@ } |
@@ -425,3 +425,3 @@ /** | ||
var value = parameters[key]; | ||
return key + '=' + encodeURI(typeof value === 'number' ? value.toString() : value); | ||
return key + '=' + encodeURIComponent(typeof value === 'number' ? value.toString() : value); | ||
}).join('&'); | ||
@@ -428,0 +428,0 @@ } |
@@ -429,3 +429,3 @@ 'use strict'; | ||
var value = parameters[key]; | ||
return key + '=' + encodeURI(typeof value === 'number' ? value.toString() : value); | ||
return key + '=' + encodeURIComponent(typeof value === 'number' ? value.toString() : value); | ||
}).join('&'); | ||
@@ -432,0 +432,0 @@ } |
{ | ||
"name": "rest-api-handler", | ||
"version": "1.8.0", | ||
"version": "1.8.1", | ||
"description": "Handler for REST APIs", | ||
@@ -28,3 +28,3 @@ "main": "dist/index.js", | ||
"cross-fetch": "^2.2.0", | ||
"flow-bin": "0.73.0", | ||
"flow-bin": "0.75.0", | ||
"flow-coverage-report": "^0.5.0", | ||
@@ -31,0 +31,0 @@ "flow-typed": "^2.4.0" |
@@ -117,3 +117,3 @@ // @flow | ||
const value = parameters[key]; | ||
return `${key}=${encodeURI(typeof value === 'number' ? value.toString() : value)}`; | ||
return `${key}=${encodeURIComponent(typeof value === 'number' ? value.toString() : value)}`; | ||
}).join('&')}`; | ||
@@ -120,0 +120,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
100361