Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Commit

Permalink
Merge pull request #616 from apollographql/greenkeeper/tslint-5.1.0
Browse files Browse the repository at this point in the history
Update tslint to the latest version 🚀
  • Loading branch information
helfer committed Apr 13, 2017
2 parents 5668810 + 9670d83 commit 01b8b10
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
"source-map-support": "^0.4.0",
"swapi-graphql": "0.0.6",
"travis-weigh-in": "^1.0.2",
"tslint": "^4.4.2",
"tslint": "^5.1.0",
"typescript": "^2.2.0",
"typescript-require": "^0.2.9-1",
"typings": "^2.1.0",
Expand Down
2 changes: 1 addition & 1 deletion src/ApolloProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,4 @@ export default class ApolloProvider extends Component<ProviderProps, any> {
render() {
return React.Children.only(this.props.children);
}
};
}
2 changes: 1 addition & 1 deletion src/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ export { compose } from 'redux';

// re-exports of close dependencies.
export { default as ApolloClient, createNetworkInterface } from 'apollo-client';
export { default as gql } from 'graphql-tag'
export { default as gql } from 'graphql-tag';
8 changes: 4 additions & 4 deletions src/graphql.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export function withApollo(

// Make sure we preserve any custom statics on the original component.
return hoistNonReactStatics(WithApollo, WrappedComponent, {});
};
}

export interface OperationOption {
options?: Object | ((props: any) => QueryOptions | MutationOptions);
Expand Down Expand Up @@ -278,7 +278,7 @@ export default function graphql(
}
if (this.type === DocumentType.Mutation) {
return;
};
}
if (this.type === DocumentType.Subscription
&& operationOptions.shouldResubscribe
&& operationOptions.shouldResubscribe(this.props, nextProps)) {
Expand Down Expand Up @@ -354,7 +354,7 @@ export default function graphql(
}
opts = { ...opts, variables };
return opts;
};
}

calculateResultProps(result) {
let name = this.type === DocumentType.Mutation ? 'mutate' : 'data';
Expand Down Expand Up @@ -606,7 +606,7 @@ export default function graphql(
};

return wrapWithApolloComponent;
};
}

/**
* An observable query recycler stores some observable queries that are no
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ export * from './browser';
export { getDataFromTree, renderToStringWithData } from './server';

export { default as ApolloClient, createNetworkInterface } from 'apollo-client';
export { default as gql } from 'graphql-tag'
export { default as gql } from 'graphql-tag';
2 changes: 1 addition & 1 deletion src/test-utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ export class MockSubscriptionNetworkInterface extends MockNetworkInterface imple
throw new Error('Network interface does not have subscription associated with this request.');
}

};
}

public fireResult(id: number) {
const handler = this.handlersById[id];
Expand Down

0 comments on commit 01b8b10

Please sign in to comment.