File tree 2 files changed +2
-5
lines changed
packages/optimizely-sdk/lib
2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change 13
13
* See the License for the specific language governing permissions and
14
14
* limitations under the License.
15
15
*/
16
- var fns = require ( '../../utils/fns' ) ;
17
-
18
16
var POST_METHOD = 'POST' ;
19
17
var GET_METHOD = 'GET' ;
20
18
var READYSTATE_COMPLETE = 4 ;
@@ -68,7 +66,7 @@ module.exports = {
68
66
} ;
69
67
70
68
var 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 ] ) ;
73
71
} ) . join ( '&' ) ;
74
72
} ;
Original file line number Diff line number Diff line change @@ -32,7 +32,6 @@ module.exports = {
32
32
keyBy : require ( 'lodash/keyBy' ) ,
33
33
forEach : require ( 'lodash/forEach' ) ,
34
34
forOwn : require ( 'lodash/forOwn' ) ,
35
- map : require ( 'lodash/map' ) ,
36
35
uuid : function ( ) {
37
36
return uuid . v4 ( ) ;
38
37
} ,
You can’t perform that action at this time.
0 commit comments