Skip to content

Commit

Permalink
updated params, removed queryParams by mistake.
Browse files Browse the repository at this point in the history
  • Loading branch information
kennetpostigo committed May 20, 2016
1 parent d31d8ea commit 6753471
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
5 changes: 3 additions & 2 deletions dist/react-reach.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ return /******/ (function(modules) { // webpackBootstrap
* @return {[Promise]} [Promise containing payload]
*/

function transport(path, query, token) {
function transport(path, query, queryParams, token) {
return (0, _isomorphicFetch2.default)(path, {
method: 'POST',
headers: {
Expand All @@ -107,7 +107,8 @@ return /******/ (function(modules) { // webpackBootstrap
'authorization': token
},
body: (0, _stringify2.default)({
query: query
query: query,
queryParams: queryParams
})
}).then(function (response) {
return response.json();
Expand Down
2 changes: 1 addition & 1 deletion dist/react-reach.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-reach",
"version": "0.3.9",
"version": "0.4.0",
"description": "A small library for react to communicate with GraphQL",
"main": "dist/react-reach.js",
"scripts": {
Expand Down
5 changes: 3 additions & 2 deletions src/utils/transport.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import fetch from 'isomorphic-fetch';
* @return {[Promise]} [Promise containing payload]
*/

export function transport (path, query, token) {
export function transport (path, query, queryParams, token) {
return fetch(path, {
method: 'POST',
headers: {
Expand All @@ -17,7 +17,8 @@ export function transport (path, query, token) {
'authorization': token
},
body: JSON.stringify({
query
query,
queryParams
})
})
.then((response) => {
Expand Down

0 comments on commit 6753471

Please sign in to comment.