File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
packages/optimizely-sdk/lib Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change 1313 * See the License for the specific language governing permissions and
1414 * limitations under the License.
1515 */
16- var fns = require ( '../../utils/fns' ) ;
17-
1816var POST_METHOD = 'POST' ;
1917var GET_METHOD = 'GET' ;
2018var READYSTATE_COMPLETE = 4 ;
@@ -68,7 +66,7 @@ module.exports = {
6866} ;
6967
7068var toQueryString = function ( obj ) {
71- return fns . map ( obj , function ( v , k ) {
72- return encodeURIComponent ( k ) + '=' + encodeURIComponent ( v ) ;
69+ return Object . keys ( obj ) . map ( function ( k ) {
70+ return encodeURIComponent ( k ) + '=' + encodeURIComponent ( obj [ k ] ) ;
7371 } ) . join ( '&' ) ;
7472} ;
Original file line number Diff line number Diff line change @@ -32,7 +32,6 @@ module.exports = {
3232 keyBy : require ( 'lodash/keyBy' ) ,
3333 forEach : require ( 'lodash/forEach' ) ,
3434 forOwn : require ( 'lodash/forOwn' ) ,
35- map : require ( 'lodash/map' ) ,
3635 uuid : function ( ) {
3736 return uuid . v4 ( ) ;
3837 } ,
You can’t perform that action at this time.
0 commit comments