react-native-woocommerce-api
Advanced tools
Comparing version 1.5.0 to 1.5.1
@@ -171,2 +171,3 @@ 'use strict'; | ||
//check if params is passed | ||
if (method === 'GET' && typeof data === 'object') { | ||
@@ -213,9 +214,2 @@ url = url + '?' + this.join(data, '&'); | ||
if (method === 'GET') { | ||
if (data) { | ||
requestUrl += '&' + this.join(data, '&'); | ||
} | ||
// console.log('encode', params.qs.oauth_signature); | ||
//console.log(requestUrl); | ||
return fetch(requestUrl, { | ||
@@ -222,0 +216,0 @@ headers: { |
{ | ||
"name": "react-native-woocommerce-api", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"description": "Connects react Native to the WooCommerce API", | ||
@@ -5,0 +5,0 @@ "main": "lib/react-native-woocommerce-api.js", |
17654
392