Skip to content

Commit

Permalink
Merge branch 'master' into update-type-close
Browse files Browse the repository at this point in the history
  • Loading branch information
mjc1283 authored Feb 21, 2020
2 parents 7430a7f + 7994910 commit bceef5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
var fns = require('../../utils/fns');

var POST_METHOD = 'POST';
var GET_METHOD = 'GET';
var READYSTATE_COMPLETE = 4;
Expand Down Expand Up @@ -68,7 +66,7 @@ module.exports = {
};

var toQueryString = function(obj) {
return fns.map(obj, function(v, k) {
return encodeURIComponent(k) + '=' + encodeURIComponent(v);
return Object.keys(obj).map(function(k) {
return encodeURIComponent(k) + '=' + encodeURIComponent(obj[k]);
}).join('&');
};
1 change: 0 additions & 1 deletion packages/optimizely-sdk/lib/utils/fns/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ module.exports = {
keyBy: require('lodash/keyBy'),
forEach: require('lodash/forEach'),
forOwn: require('lodash/forOwn'),
map: require('lodash/map'),
uuid: function() {
return uuid.v4();
},
Expand Down

0 comments on commit bceef5f

Please sign in to comment.