Skip to content

Commit

Permalink
changing imports
Browse files Browse the repository at this point in the history
  • Loading branch information
kennetpostigo committed Jan 29, 2016
1 parent c7b8337 commit a8278a6
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion dist/reachGraphQL.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var _asyncToGenerator3 = _interopRequireDefault(_asyncToGenerator2);
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = reachGraphQL;
exports.reachGraphQL = reachGraphQL;

var _transport = require('./utils/transport.js');

Expand Down
2 changes: 1 addition & 1 deletion dist/reachWithDispatch.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var _asyncToGenerator3 = _interopRequireDefault(_asyncToGenerator2);
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = reachWithDispatch;
exports.reachWithDispatch = reachWithDispatch;

var _transport = require('./utils/transport.js');

Expand Down
2 changes: 1 addition & 1 deletion dist/utils/transport.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var _stringify2 = _interopRequireDefault(_stringify);
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = transport;
exports.transport = transport;

var _isomorphicFetch = require('isomorphic-fetch');

Expand Down
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.1.13",
"version": "0.1.14",
"description": "A small library for react to communicate with GraphQL",
"main": "dist/index.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import reachGraphQL from './reachGraphQL.js';
import reachWithDispatch from './reachWithDispatch.js';
import { reachGraphQL } from './reachGraphQL.js';
import { reachWithDispatch } from './reachWithDispatch.js';

export {
reachGraphQL,
Expand Down
4 changes: 2 additions & 2 deletions src/reachGraphQL.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import transport from './utils/transport.js';
import { transport } from './utils/transport.js';

/**
* [reachGraphQL Makes queres or mutations against GraphQL]
Expand All @@ -7,7 +7,7 @@ import transport from './utils/transport.js';
* @param {[object]} queryParams = {} [Should contain object with different query params]
* @return {[Object]} [Data that was queried or mutated]
*/
export default function reachGraphQL (path, query, queryParams = {}) {
export function reachGraphQL (path, query, queryParams = {}) {
return async () => {
try{
let response = await transport(path, query, queryParams);
Expand Down
4 changes: 2 additions & 2 deletions src/reachWithDispatch.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import transport from './utils/transport.js';
import { transport } from './utils/transport.js';

/**
* [reachWithDispatch description]
Expand All @@ -8,7 +8,7 @@ import transport from './utils/transport.js';
* @param {[type]} actionCreator = ( [The actionCreator to dispatch]
* @return {[function]} [dispatch to store]
*/
export default function reachWithDispatch (path, query, queryParams = {}, actionCreator) {
export function reachWithDispatch (path, query, queryParams = {}, actionCreator) {
return async (dispatch) => {
try{
let response = await transport(path, query, queryParams);
Expand Down
2 changes: 1 addition & 1 deletion src/utils/transport.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import fetch from 'isomorphic-fetch';
* @param {[Object]} queryParams = {} [Params to pass into query]
* @return {[Promise]} [Promise containing payload]
*/
export default function transport (path, query, queryParams = {}) {
export function transport (path, query, queryParams = {}) {
return fetch(path, {
method: 'POST',
headers: {
Expand Down

0 comments on commit a8278a6

Please sign in to comment.