Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-apollo

Package Overview
Dependencies
Maintainers
2
Versions
220
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-apollo - npm Package Compare versions

Comparing version 0.5.13 to 0.5.14

yarn.lock

5

Changelog.md

@@ -7,2 +7,7 @@ # Change log

### v0.5.14
- Bug: Fix issue with usage in TypeScript projects caused by 'compose' re-export. [PR #291](https://github.com/apollostack/react-apollo/pull/291)
- Bug: Fix issue with forceFetch during SSR [PR #293](https://github.com/apollostack/react-apollo/pull/293)
### v0.5.12

@@ -9,0 +14,0 @@

2

dist/index.min.js

@@ -1,1 +0,1 @@

!function t(e,n,r){function o(a,u){if(!n[a]){if(!e[a]){var s="function"==typeof require&&require;if(!u&&s)return s(a,!0);if(i)return i(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[a]={exports:{}};e[a][0].call(l.exports,function(t){var n=e[a][1][t];return o(n?n:t)},l,l.exports,t,e,n,r)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("react"),i=t("react"),a=t("invariant"),u=function(t){function e(e,n){return t.call(this,e,n),a(e.client,'ApolloClient was not passed a client instance. Make sure you pass in your client via the "client" prop.'),this.client=e.client,e.store?(this.store=e.store,void(e.immutable&&e.client.initStore())):(e.client.initStore(),void(this.store=e.client.store))}return r(e,t),e.prototype.getChildContext=function(){return{store:this.store,client:this.client}},e.prototype.render=function(){return o.Children.only(this.props.children)},e.propTypes={store:i.PropTypes.shape({subscribe:i.PropTypes.func.isRequired,dispatch:i.PropTypes.func.isRequired,getState:i.PropTypes.func.isRequired}),client:i.PropTypes.object.isRequired,immutable:i.PropTypes.bool,children:i.PropTypes.element.isRequired},e.childContextTypes={store:i.PropTypes.object.isRequired,client:i.PropTypes.object.isRequired},e}(i.Component);Object.defineProperty(n,"__esModule",{value:!0}),n.default=u},{invariant:9,react:6}],2:[function(t,e,n){"use strict";function r(t){var e=c(t,"variables","refetch","fetchMore","updateQuery","startPolling","stopPolling","subscribeToMore");return Object.keys(e).forEach(function(n){"function"==typeof e[n]&&(e[n]=e[n].bind(t))}),e}function o(t){return t.displayName||t.name||"Component"}function i(t){var e="withApollo("+o(t)+")",n=function(n){function r(t,r){n.call(this,t,r),this.client=r.client,f(!!this.client,'Could not find "client" in the context of '+('"'+e+'". ')+"Wrap the root component in an <ApolloProvider>")}return u(r,n),r.prototype.render=function(){var e=h({},this.props);return e.client=this.client,s.createElement(t,e)},r.displayName=e,r.WrappedComponent=t,r.contextTypes={client:s.PropTypes.object.isRequired},r}(s.Component);return d(n,t,{fetchData:!0})}function a(t,e){void 0===e&&(e={});var n=e.options,i=void 0===n?g:n,a=e.skip,c=void 0===a?w:a,T=i;"function"!=typeof T&&(T=function(){return i});var q=c;"function"!=typeof q&&(q=function(){return c});var P=e.props,D=b.parser(t),C=j++;return function(n){function i(t,e){var r=T(t);if(e&&e.variables&&(e.variables=h({},r.variables,e.variables)),e&&(r=h({},r,e)),r.fragments&&(r.fragments=l(r.fragments)),r.variables||!D.variables.length)return r;for(var i={},a=0,u=D.variables;a<u.length;a++){var s=u[a],p=s.variable,d=s.type;p.name&&p.name.value&&("undefined"==typeof t[p.name.value]?"NonNullType"===d.kind?f("undefined"!=typeof t[p.name.value],"The operation '"+D.name+"' wrapping '"+o(n)+"' "+("is expecting a variable: '"+p.name.value+"' but it was not found in the props ")+("passed to '"+c+"'")):i[p.name.value]=null:i[p.name.value]=t[p.name.value])}return r.variables=i,r}function a(e,n){var r=n.client;if(q(e))return!1;if(D.type===b.DocumentType.Mutation||D.type===b.DocumentType.Subscription)return!1;var o=i(e);if(o.ssr===!1||o.skip)return!1;var a=r.watchQuery(h({query:t},o)),u=a.currentResult();return!!u.loading&&a.result()}var c="Apollo("+o(n)+")",g=function(o){function a(t,e){o.call(this,t,e),this.data={},this.version=C,this.client=e.client,f(!!this.client,'Could not find "client" in the context of '+('"'+c+'". ')+"Wrap the root component in an <ApolloProvider>"),this.store=this.client.store,this.type=D.type,q(t)||this.setInitialProps()}return u(a,o),a.prototype.componentDidMount=function(){this.hasMounted=!0,this.type!==b.DocumentType.Mutation&&(q(this.props)||this.subscribeToQuery(this.props))},a.prototype.componentWillReceiveProps=function(t){if(q(t))return void(q(this.props)||(this.data=h({},m),this.unsubscribeFromQuery()));if(!p.default(this.props,t)){if(this.type===b.DocumentType.Mutation)return void this.createWrappedMutation(t,!0);this.haveOwnPropsChanged=!0,this.subscribeToQuery(t)}},a.prototype.shouldComponentUpdate=function(t,e,n){return!!n||this.haveOwnPropsChanged||this.hasOperationDataChanged},a.prototype.componentWillUnmount=function(){this.type===b.DocumentType.Query&&this.unsubscribeFromQuery(),this.type===b.DocumentType.Subscription&&this.unsubscribeFromQuery(),this.hasMounted=!1},a.prototype.calculateOptions=function(t,e){return i(t,e)},a.prototype.calculateResultProps=function(t){var n=this.type===b.DocumentType.Mutation?"mutate":"data";e.name&&(n=e.name);var r=(o={},o[n]=t,o.ownProps=this.props,o);return P?P(r):(i={},i[n]=O(t),i);var o,i},a.prototype.setInitialProps=function(){if(this.type===b.DocumentType.Mutation)return this.createWrappedMutation(this.props);var t=this.calculateOptions(this.props);t.skip?this.data=h({},m):(this.data=h({},v),this.createQuery(t))},a.prototype.createQuery=function(e){this.type===b.DocumentType.Subscription?this.queryObservable=this.client.subscribe(h({query:t},e)):this.queryObservable=this.client.watchQuery(h({query:t},e)),this.initializeData(e)},a.prototype.initializeData=function(t){if(h(this.data,r(this.queryObservable)),this.type===b.DocumentType.Subscription)t=this.calculateOptions(this.props,t),h(this.data,{loading:!0},{variables:t.variables});else if(t.forceFetch)h(this.data,{loading:!0});else{var e=this.queryObservable.currentResult();h(this.data,e.data,{loading:e.loading})}},a.prototype.subscribeToQuery=function(t){var e=this,n=i(t);if(n.skip)return void(this.querySubscription&&(this.hasOperationDataChanged=!0,this.data=h({},m),this.unsubscribeFromQuery(),this.forceRenderChildren()));if(this.querySubscription)return this.queryObservable._setOptionsNoResult?this.queryObservable._setOptionsNoResult(n):this.queryObservable.setOptions(n),void h(this.data,{loading:this.queryObservable.currentResult().loading},r(this.queryObservable));this.queryObservable?this.data.refetch||this.initializeData(n):this.createQuery(n);var o=function(t){e.type===b.DocumentType.Subscription&&(t={data:t,loading:!1,error:null});var n=t.data,o=t.loading,i=t.error,a=void 0===i?null:i,u=Object.keys(r(n));f(0===u.length,"the result of the '"+c+"' operation contains keys that conflict with the return object."+u.map(function(t){return"'"+t+"'"}).join(", ")+" not allowed."),e.hasOperationDataChanged=!0,e.data=h({loading:o,error:a},n,r(e.queryObservable)),e.forceRenderChildren()},a=function(t){if(t instanceof y.ApolloError)return o({error:t});throw t};this.querySubscription=this.queryObservable.subscribe({next:o,error:a})},a.prototype.unsubscribeFromQuery=function(){this.querySubscription&&(this.querySubscription.unsubscribe(),delete this.querySubscription)},a.prototype.forceRenderChildren=function(){this.hasMounted&&this.setState({})},a.prototype.getWrappedInstance=function(){return f(e.withRef,"To access the wrapped instance, you need to specify { withRef: true } in the options"),this.refs.wrappedInstance},a.prototype.createWrappedMutation=function(e,n){var r=this;void 0===n&&(n=!1),this.type===b.DocumentType.Mutation&&(this.data=function(n){return n=r.calculateOptions(e,n),"undefined"==typeof n.variables&&delete n.variables,n.mutation=t,r.client.mutate(n)},n&&(this.hasOperationDataChanged=!0,this.forceRenderChildren()))},a.prototype.render=function(){if(q(this.props))return s.createElement(n,this.props);var t=this,r=t.haveOwnPropsChanged,o=t.hasOperationDataChanged,i=t.renderedElement,a=t.props,u=t.data;this.haveOwnPropsChanged=!1,this.hasOperationDataChanged=!1;var c=this.calculateResultProps(u),l=h({},a,c);return r||o||!i?(e.withRef&&(l.ref="wrappedInstance"),this.renderedElement=s.createElement(n,l),this.renderedElement):i},a.displayName=c,a.WrappedComponent=n,a.contextTypes={store:s.PropTypes.object.isRequired,client:s.PropTypes.object.isRequired},a.fragments=D.fragments,a}(s.Component);return D.type===b.DocumentType.Query&&(g.fetchData=a),d(g,n,{fetchData:!0})}}var u=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=t("react"),c=t("lodash.pick"),l=t("lodash.flatten"),p=t("./shallowEqual"),f=t("invariant"),h=t("object-assign"),d=t("hoist-non-react-statics"),y=t("apollo-client"),b=t("./parser"),v={loading:!0,error:null},m={loading:!1,error:null},g=function(t){return{}},O=function(t){return t},w=function(t){return!1},j=0;n.withApollo=i,Object.defineProperty(n,"__esModule",{value:!0}),n.default=a},{"./parser":4,"./shallowEqual":5,"apollo-client":6,"hoist-non-react-statics":8,invariant:9,"lodash.flatten":10,"lodash.pick":11,"object-assign":12,react:6}],3:[function(t,e,n){"use strict";var r=t("./ApolloProvider");n.ApolloProvider=r.default;var o=t("./graphql");n.graphql=o.default,n.withApollo=o.withApollo;var i=t("recompose/compose");n.compose=i.default},{"./ApolloProvider":1,"./graphql":2,"recompose/compose":13}],4:[function(t,e,n){"use strict";function r(t){var e,n,r,u,s,c,l,p;i(!!t||!!t.kind,"Argument of "+t+" passed to parser was not a valid GraphQL Document. You may need to use 'graphql-tag' or another method to convert your operation into a document"),e=t.definitions.filter(function(t){return"FragmentDefinition"===t.kind}),e=o.createFragment({kind:"Document",definitions:e.slice()}),n=t.definitions.filter(function(t){return"OperationDefinition"===t.kind&&"query"===t.operation}),r=t.definitions.filter(function(t){return"OperationDefinition"===t.kind&&"mutation"===t.operation}),u=t.definitions.filter(function(t){return"OperationDefinition"===t.kind&&"subscription"===t.operation}),!e.length||n.length&&r.length&&u.length||i(!0,"Passing only a fragment to 'graphql' is not yet supported. You must include a query, subscription or mutation as well"),n.length&&r.length&&r.length&&i(n.length+r.length+r.length>1,"react-apollo only supports a query, subscription, or a mutation per HOC. "+t+" had "+n.length+" queries, "+u.length+" subscriptions and "+r.length+" muations. You can use 'compose' to join multiple operation types to a component"),l=n.length?a.Query:a.Mutation,n.length||r.length||(l=a.Subscription),c=n.length?n:r,n.length||r.length||(c=u),1!==c.length&&i(1!==c.length,"react-apollo only supports one defintion per HOC. "+t+" had "+c.length+" definitions. You can use 'compose' to join multiple operation types to a component"),s=c[0].variableDefinitions||[];var f=c[0].name&&"Name"===c[0].name.kind;return p=f?c[0].name.value:"data",e=e.length?e:[],{name:p,type:l,variables:s,fragments:e}}var o=t("apollo-client"),i=t("invariant");!function(t){t[t.Query=0]="Query",t[t.Mutation=1]="Mutation",t[t.Subscription=2]="Subscription"}(n.DocumentType||(n.DocumentType={}));var a=n.DocumentType;n.parser=r},{"apollo-client":6,invariant:9}],5:[function(t,e,n){"use strict";function r(t,e){if(!t||!e)return!0;if(t===e)return!0;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(var o=Object.prototype.hasOwnProperty,i=0;i<n.length;i++)if(!o.call(e,n[i])||t[n[i]]!==e[n[i]])return!1;return!0}Object.defineProperty(n,"__esModule",{value:!0}),n.default=r},{}],6:[function(t,e,n){},{}],7:[function(t,e,n){function r(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function i(t){if(p===setTimeout)return setTimeout(t,0);if((p===r||!p)&&setTimeout)return p=setTimeout,setTimeout(t,0);try{return p(t,0)}catch(e){try{return p.call(null,t,0)}catch(e){return p.call(this,t,0)}}}function a(t){if(f===clearTimeout)return clearTimeout(t);if((f===o||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(t);try{return f(t)}catch(e){try{return f.call(null,t)}catch(e){return f.call(this,t)}}}function u(){b&&d&&(b=!1,d.length?y=d.concat(y):v=-1,y.length&&s())}function s(){if(!b){var t=i(u);b=!0;for(var e=y.length;e;){for(d=y,y=[];++v<e;)d&&d[v].run();v=-1,e=y.length}d=null,b=!1,a(t)}}function c(t,e){this.fun=t,this.array=e}function l(){}var p,f,h=e.exports={};!function(){try{p="function"==typeof setTimeout?setTimeout:r}catch(t){p=r}try{f="function"==typeof clearTimeout?clearTimeout:o}catch(t){f=o}}();var d,y=[],b=!1,v=-1;h.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];y.push(new c(t,e)),1!==y.length||b||i(s)},c.prototype.run=function(){this.fun.apply(null,this.array)},h.title="browser",h.browser=!0,h.env={},h.argv=[],h.version="",h.versions={},h.on=l,h.addListener=l,h.once=l,h.off=l,h.removeListener=l,h.removeAllListeners=l,h.emit=l,h.binding=function(t){throw new Error("process.binding is not supported")},h.cwd=function(){return"/"},h.chdir=function(t){throw new Error("process.chdir is not supported")},h.umask=function(){return 0}},{}],8:[function(t,e,n){"use strict";var r={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0},i="function"==typeof Object.getOwnPropertySymbols;e.exports=function(t,e,n){if("string"!=typeof e){var a=Object.getOwnPropertyNames(e);i&&(a=a.concat(Object.getOwnPropertySymbols(e)));for(var u=0;u<a.length;++u)if(!(r[a[u]]||o[a[u]]||n&&n[a[u]]))try{t[a[u]]=e[a[u]]}catch(t){}}return t}},{}],9:[function(t,e,n){(function(t){"use strict";var n=function(e,n,r,o,i,a,u,s){if("production"!==t.env.NODE_ENV&&void 0===n)throw new Error("invariant requires an error message argument");if(!e){var c;if(void 0===n)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[r,o,i,a,u,s],p=0;c=new Error(n.replace(/%s/g,function(){return l[p++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}};e.exports=n}).call(this,t("_process"))},{_process:7}],10:[function(t,e,n){(function(t){function n(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}function r(t,e,i,a,u){var s=-1,c=t.length;for(i||(i=o),u||(u=[]);++s<c;){var l=t[s];e>0&&i(l)?e>1?r(l,e-1,i,a,u):n(u,l):a||(u[u.length]=l)}return u}function o(t){return D(t)||a(t)||!!(P&&t&&t[P])}function i(t){var e=t?t.length:0;return e?r(t,1):[]}function a(t){return s(t)&&w.call(t,"callee")&&(!q.call(t,"callee")||j.call(t)==d)}function u(t){return null!=t&&l(t.length)&&!c(t)}function s(t){return f(t)&&u(t)}function c(t){var e=p(t)?j.call(t):"";return e==y||e==b}function l(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=h}function p(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function f(t){return!!t&&"object"==typeof t}var h=9007199254740991,d="[object Arguments]",y="[object Function]",b="[object GeneratorFunction]",v="object"==typeof t&&t&&t.Object===Object&&t,m="object"==typeof self&&self&&self.Object===Object&&self,g=v||m||Function("return this")(),O=Object.prototype,w=O.hasOwnProperty,j=O.toString,T=g.Symbol,q=O.propertyIsEnumerable,P=T?T.isConcatSpreadable:void 0,D=Array.isArray;e.exports=i}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],11:[function(t,e,n){(function(t){function n(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function r(t,e){for(var n=-1,r=t?t.length:0,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}function o(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}function i(t,e,n,r,a){var u=-1,s=t.length;for(n||(n=c),a||(a=[]);++u<s;){var l=t[u];e>0&&n(l)?e>1?i(l,e-1,n,r,a):o(a,l):r||(a[a.length]=l)}return a}function a(t,e){return t=Object(t),u(t,e,function(e,n){return n in t})}function u(t,e,n){for(var r=-1,o=e.length,i={};++r<o;){var a=e[r],u=t[a];n(u,a)&&(i[a]=u)}return i}function s(t,e){return e=R(void 0===e?t.length-1:e,0),function(){for(var r=arguments,o=-1,i=R(r.length-e,0),a=Array(i);++o<i;)a[o]=r[e+o];o=-1;for(var u=Array(e+1);++o<e;)u[o]=r[o];return u[e]=a,n(t,this,u)}}function c(t){return Q(t)||p(t)||!!(A&&t&&t[A])}function l(t){if("string"==typeof t||m(t))return t;var e=t+"";return"0"==e&&1/t==-g?"-0":e}function p(t){return h(t)&&x.call(t,"callee")&&(!k.call(t,"callee")||E.call(t)==w)}function f(t){return null!=t&&y(t.length)&&!d(t)}function h(t){return v(t)&&f(t)}function d(t){var e=b(t)?E.call(t):"";return e==j||e==T}function y(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=O}function b(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function v(t){return!!t&&"object"==typeof t}function m(t){return"symbol"==typeof t||v(t)&&E.call(t)==q}var g=1/0,O=9007199254740991,w="[object Arguments]",j="[object Function]",T="[object GeneratorFunction]",q="[object Symbol]",P="object"==typeof t&&t&&t.Object===Object&&t,D="object"==typeof self&&self&&self.Object===Object&&self,C=P||D||Function("return this")(),S=Object.prototype,x=S.hasOwnProperty,E=S.toString,M=C.Symbol,k=S.propertyIsEnumerable,A=M?M.isConcatSpreadable:void 0,R=Math.max,Q=Array.isArray,_=s(function(t,e){return null==t?{}:a(t,r(i(e,1),l))});e.exports=_}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],12:[function(t,e,n){"use strict";function r(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function o(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(e).map(function(t){return e[t]});if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(t){o[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(t){return!1}}var i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=o()?Object.assign:function(t,e){for(var n,o,u=r(t),s=1;s<arguments.length;s++){n=Object(arguments[s]);for(var c in n)i.call(n,c)&&(u[c]=n[c]);if(Object.getOwnPropertySymbols){o=Object.getOwnPropertySymbols(n);for(var l=0;l<o.length;l++)a.call(n,o[l])&&(u[o[l]]=n[o[l]])}}return u}},{}],13:[function(t,e,n){"use strict";function r(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];if(0===e.length)return function(t){return t};if(1===e.length)return e[0];var r=e[e.length-1];return function(){for(var t=r.apply(void 0,arguments),n=e.length-2;n>=0;n--){var o=e[n];t=o(t)}return t}}n.__esModule=!0,n.default=r},{}]},{},[3]);
!function e(t,n,r){function o(u,a){if(!n[u]){if(!t[u]){var s="function"==typeof require&&require;if(!a&&s)return s(u,!0);if(i)return i(u,!0);var c=new Error("Cannot find module '"+u+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[u]={exports:{}};t[u][0].call(l.exports,function(e){var n=t[u][1][e];return o(n?n:e)},l,l.exports,e,t,n,r)}return n[u].exports}for(var i="function"==typeof require&&require,u=0;u<r.length;u++)o(r[u]);return o}({1:[function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=e("react"),i=e("react"),u=e("invariant"),a=function(e){function t(t,n){return e.call(this,t,n),u(t.client,'ApolloClient was not passed a client instance. Make sure you pass in your client via the "client" prop.'),this.client=t.client,t.store?(this.store=t.store,void(t.immutable&&t.client.initStore())):(t.client.initStore(),void(this.store=t.client.store))}return r(t,e),t.prototype.getChildContext=function(){return{store:this.store,client:this.client}},t.prototype.render=function(){return o.Children.only(this.props.children)},t.propTypes={store:i.PropTypes.shape({subscribe:i.PropTypes.func.isRequired,dispatch:i.PropTypes.func.isRequired,getState:i.PropTypes.func.isRequired}),client:i.PropTypes.object.isRequired,immutable:i.PropTypes.bool,children:i.PropTypes.element.isRequired},t.childContextTypes={store:i.PropTypes.object.isRequired,client:i.PropTypes.object.isRequired},t}(i.Component);Object.defineProperty(n,"__esModule",{value:!0}),n.default=a},{invariant:8,react:6}],2:[function(e,t,n){"use strict";function r(e){var t=c(e,"variables","refetch","fetchMore","updateQuery","startPolling","stopPolling","subscribeToMore");return Object.keys(t).forEach(function(n){"function"==typeof t[n]&&(t[n]=t[n].bind(e))}),t}function o(e){return e.displayName||e.name||"Component"}function i(e){var t="withApollo("+o(e)+")",n=function(n){function r(e,r){n.call(this,e,r),this.client=r.client,p(!!this.client,'Could not find "client" in the context of '+('"'+t+'". ')+"Wrap the root component in an <ApolloProvider>")}return a(r,n),r.prototype.render=function(){var t=d({},this.props);return t.client=this.client,s.createElement(e,t)},r.displayName=t,r.WrappedComponent=e,r.contextTypes={client:s.PropTypes.object.isRequired},r}(s.Component);return h(n,e,{fetchData:!0})}function u(e,t){void 0===t&&(t={});var n=t.options,i=void 0===n?g:n,u=t.skip,c=void 0===u?O:u,T=i;"function"!=typeof T&&(T=function(){return i});var P=c;"function"!=typeof P&&(P=function(){return c});var _=t.props,E=b.parser(e),x=j++;return function(n){function i(e,t){var r=T(e);if(t&&t.variables&&(t.variables=d({},r.variables,t.variables)),t&&(r=d({},r,t)),r.fragments&&(r.fragments=l(r.fragments)),r.variables||!E.variables.length)return r;for(var i={},u=0,a=E.variables;u<a.length;u++){var s=a[u],f=s.variable,h=s.type;f.name&&f.name.value&&("undefined"==typeof e[f.name.value]?"NonNullType"===h.kind?p("undefined"!=typeof e[f.name.value],"The operation '"+E.name+"' wrapping '"+o(n)+"' "+("is expecting a variable: '"+f.name.value+"' but it was not found in the props ")+("passed to '"+c+"'")):i[f.name.value]=null:i[f.name.value]=e[f.name.value])}return r.variables=i,r}function u(t,n){var r=n.client;if(P(t))return!1;if(E.type===b.DocumentType.Mutation||E.type===b.DocumentType.Subscription)return!1;var o=i(t);if(o.ssr===!1||o.skip)return!1;o.forceFetch&&delete o.forceFetch;var u=r.watchQuery(d({query:e},o)),a=u.currentResult();return!!a.loading&&u.result()}var c="Apollo("+o(n)+")",g=function(o){function u(e,t){o.call(this,e,t),this.data={},this.version=x,this.client=t.client,p(!!this.client,'Could not find "client" in the context of '+('"'+c+'". ')+"Wrap the root component in an <ApolloProvider>"),this.store=this.client.store,this.type=E.type,P(e)||this.setInitialProps()}return a(u,o),u.prototype.componentDidMount=function(){this.hasMounted=!0,this.type!==b.DocumentType.Mutation&&(P(this.props)||this.subscribeToQuery(this.props))},u.prototype.componentWillReceiveProps=function(e){if(P(e))return void(P(this.props)||(this.data=d({},m),this.unsubscribeFromQuery()));if(!f.default(this.props,e)){if(this.type===b.DocumentType.Mutation)return void this.createWrappedMutation(e,!0);this.haveOwnPropsChanged=!0,this.subscribeToQuery(e)}},u.prototype.shouldComponentUpdate=function(e,t,n){return!!n||this.haveOwnPropsChanged||this.hasOperationDataChanged},u.prototype.componentWillUnmount=function(){this.type===b.DocumentType.Query&&this.unsubscribeFromQuery(),this.type===b.DocumentType.Subscription&&this.unsubscribeFromQuery(),this.hasMounted=!1},u.prototype.calculateOptions=function(e,t){return i(e,t)},u.prototype.calculateResultProps=function(e){var n=this.type===b.DocumentType.Mutation?"mutate":"data";t.name&&(n=t.name);var r=(o={},o[n]=e,o.ownProps=this.props,o);return _?_(r):(i={},i[n]=w(e),i);var o,i},u.prototype.setInitialProps=function(){if(this.type===b.DocumentType.Mutation)return this.createWrappedMutation(this.props);var e=this.calculateOptions(this.props);e.skip?this.data=d({},m):(this.data=d({},v),this.createQuery(e))},u.prototype.createQuery=function(t){this.type===b.DocumentType.Subscription?this.queryObservable=this.client.subscribe(d({query:e},t)):this.queryObservable=this.client.watchQuery(d({query:e},t)),this.initializeData(t)},u.prototype.initializeData=function(e){if(d(this.data,r(this.queryObservable)),this.type===b.DocumentType.Subscription)e=this.calculateOptions(this.props,e),d(this.data,{loading:!0},{variables:e.variables});else if(e.forceFetch)d(this.data,{loading:!0});else{var t=this.queryObservable.currentResult();d(this.data,t.data,{loading:t.loading})}},u.prototype.subscribeToQuery=function(e){var t=this,n=i(e);if(n.skip)return void(this.querySubscription&&(this.hasOperationDataChanged=!0,this.data=d({},m),this.unsubscribeFromQuery(),this.forceRenderChildren()));if(this.querySubscription)return this.queryObservable._setOptionsNoResult?this.queryObservable._setOptionsNoResult(n):this.queryObservable.setOptions(n),void d(this.data,{loading:this.queryObservable.currentResult().loading},r(this.queryObservable));this.queryObservable?this.data.refetch||this.initializeData(n):this.createQuery(n);var o=function(e){t.type===b.DocumentType.Subscription&&(e={data:e,loading:!1,error:null});var n=e.data,o=e.loading,i=e.error,u=void 0===i?null:i,a=Object.keys(r(n));p(0===a.length,"the result of the '"+c+"' operation contains keys that conflict with the return object."+a.map(function(e){return"'"+e+"'"}).join(", ")+" not allowed."),t.hasOperationDataChanged=!0,t.data=d({loading:o,error:u},n,r(t.queryObservable)),t.forceRenderChildren()},u=function(e){if(e instanceof y.ApolloError)return o({error:e});throw e};this.querySubscription=this.queryObservable.subscribe({next:o,error:u})},u.prototype.unsubscribeFromQuery=function(){this.querySubscription&&(this.querySubscription.unsubscribe(),delete this.querySubscription)},u.prototype.forceRenderChildren=function(){this.hasMounted&&this.setState({})},u.prototype.getWrappedInstance=function(){return p(t.withRef,"To access the wrapped instance, you need to specify { withRef: true } in the options"),this.refs.wrappedInstance},u.prototype.createWrappedMutation=function(t,n){var r=this;void 0===n&&(n=!1),this.type===b.DocumentType.Mutation&&(this.data=function(n){return n=r.calculateOptions(t,n),"undefined"==typeof n.variables&&delete n.variables,n.mutation=e,r.client.mutate(n)},n&&(this.hasOperationDataChanged=!0,this.forceRenderChildren()))},u.prototype.render=function(){if(P(this.props))return s.createElement(n,this.props);var e=this,r=e.haveOwnPropsChanged,o=e.hasOperationDataChanged,i=e.renderedElement,u=e.props,a=e.data;this.haveOwnPropsChanged=!1,this.hasOperationDataChanged=!1;var c=this.calculateResultProps(a),l=d({},u,c);return r||o||!i?(t.withRef&&(l.ref="wrappedInstance"),this.renderedElement=s.createElement(n,l),this.renderedElement):i},u.displayName=c,u.WrappedComponent=n,u.contextTypes={store:s.PropTypes.object.isRequired,client:s.PropTypes.object.isRequired},u.fragments=E.fragments,u}(s.Component);return E.type===b.DocumentType.Query&&(g.fetchData=u),h(g,n,{fetchData:!0})}}var a=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},s=e("react"),c=e("lodash.pick"),l=e("lodash.flatten"),f=e("./shallowEqual"),p=e("invariant"),d=e("object-assign"),h=e("hoist-non-react-statics"),y=e("apollo-client"),b=e("./parser"),v={loading:!0,error:null},m={loading:!1,error:null},g=function(e){return{}},w=function(e){return e},O=function(e){return!1},j=0;n.withApollo=i,Object.defineProperty(n,"__esModule",{value:!0}),n.default=u},{"./parser":4,"./shallowEqual":5,"apollo-client":6,"hoist-non-react-statics":7,invariant:8,"lodash.flatten":9,"lodash.pick":10,"object-assign":11,react:6}],3:[function(e,t,n){"use strict";var r=e("./ApolloProvider");n.ApolloProvider=r.default;var o=e("./graphql");n.graphql=o.default,n.withApollo=o.withApollo;var i=e("redux");n.compose=i.compose},{"./ApolloProvider":1,"./graphql":2,redux:18}],4:[function(e,t,n){"use strict";function r(e){var t,n,r,a,s,c,l,f;i(!!e||!!e.kind,"Argument of "+e+" passed to parser was not a valid GraphQL Document. You may need to use 'graphql-tag' or another method to convert your operation into a document"),t=e.definitions.filter(function(e){return"FragmentDefinition"===e.kind}),t=o.createFragment({kind:"Document",definitions:t.slice()}),n=e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&"query"===e.operation}),r=e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation}),a=e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&"subscription"===e.operation}),!t.length||n.length&&r.length&&a.length||i(!0,"Passing only a fragment to 'graphql' is not yet supported. You must include a query, subscription or mutation as well"),n.length&&r.length&&r.length&&i(n.length+r.length+r.length>1,"react-apollo only supports a query, subscription, or a mutation per HOC. "+e+" had "+n.length+" queries, "+a.length+" subscriptions and "+r.length+" muations. You can use 'compose' to join multiple operation types to a component"),l=n.length?u.Query:u.Mutation,n.length||r.length||(l=u.Subscription),c=n.length?n:r,n.length||r.length||(c=a),1!==c.length&&i(1!==c.length,"react-apollo only supports one defintion per HOC. "+e+" had "+c.length+" definitions. You can use 'compose' to join multiple operation types to a component"),s=c[0].variableDefinitions||[];var p=c[0].name&&"Name"===c[0].name.kind;return f=p?c[0].name.value:"data",t=t.length?t:[],{name:f,type:l,variables:s,fragments:t}}var o=e("apollo-client"),i=e("invariant");!function(e){e[e.Query=0]="Query",e[e.Mutation=1]="Mutation",e[e.Subscription=2]="Subscription"}(n.DocumentType||(n.DocumentType={}));var u=n.DocumentType;n.parser=r},{"apollo-client":6,invariant:8}],5:[function(e,t,n){"use strict";function r(e,t){if(!e||!t)return!0;if(e===t)return!0;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=Object.prototype.hasOwnProperty,i=0;i<n.length;i++)if(!o.call(t,n[i])||e[n[i]]!==t[n[i]])return!1;return!0}Object.defineProperty(n,"__esModule",{value:!0}),n.default=r},{}],6:[function(e,t,n){},{}],7:[function(e,t,n){"use strict";var r={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0},i="function"==typeof Object.getOwnPropertySymbols;t.exports=function(e,t,n){if("string"!=typeof t){var u=Object.getOwnPropertyNames(t);i&&(u=u.concat(Object.getOwnPropertySymbols(t)));for(var a=0;a<u.length;++a)if(!(r[u[a]]||o[u[a]]||n&&n[u[a]]))try{e[u[a]]=t[u[a]]}catch(e){}}return e}},{}],8:[function(e,t,n){(function(e){"use strict";var n=function(t,n,r,o,i,u,a,s){if("production"!==e.env.NODE_ENV&&void 0===n)throw new Error("invariant requires an error message argument");if(!t){var c;if(void 0===n)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[r,o,i,u,a,s],f=0;c=new Error(n.replace(/%s/g,function(){return l[f++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}};t.exports=n}).call(this,e("_process"))},{_process:12}],9:[function(e,t,n){(function(e){function n(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function r(e,t,i,u,a){var s=-1,c=e.length;for(i||(i=o),a||(a=[]);++s<c;){var l=e[s];t>0&&i(l)?t>1?r(l,t-1,i,u,a):n(a,l):u||(a[a.length]=l)}return a}function o(e){return E(e)||u(e)||!!(_&&e&&e[_])}function i(e){var t=e?e.length:0;return t?r(e,1):[]}function u(e){return s(e)&&O.call(e,"callee")&&(!P.call(e,"callee")||j.call(e)==h)}function a(e){return null!=e&&l(e.length)&&!c(e)}function s(e){return p(e)&&a(e)}function c(e){var t=f(e)?j.call(e):"";return t==y||t==b}function l(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=d}function f(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function p(e){return!!e&&"object"==typeof e}var d=9007199254740991,h="[object Arguments]",y="[object Function]",b="[object GeneratorFunction]",v="object"==typeof e&&e&&e.Object===Object&&e,m="object"==typeof self&&self&&self.Object===Object&&self,g=v||m||Function("return this")(),w=Object.prototype,O=w.hasOwnProperty,j=w.toString,T=g.Symbol,P=w.propertyIsEnumerable,_=T?T.isConcatSpreadable:void 0,E=Array.isArray;t.exports=i}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],10:[function(e,t,n){(function(e){function n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function r(e,t){for(var n=-1,r=e?e.length:0,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function o(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function i(e,t,n,r,u){var a=-1,s=e.length;for(n||(n=c),u||(u=[]);++a<s;){var l=e[a];t>0&&n(l)?t>1?i(l,t-1,n,r,u):o(u,l):r||(u[u.length]=l)}return u}function u(e,t){return e=Object(e),a(e,t,function(t,n){return n in e})}function a(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var u=t[r],a=e[u];n(a,u)&&(i[u]=a)}return i}function s(e,t){return t=A(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=A(r.length-t,0),u=Array(i);++o<i;)u[o]=r[t+o];o=-1;for(var a=Array(t+1);++o<t;)a[o]=r[o];return a[t]=u,n(e,this,a)}}function c(e){return N(e)||f(e)||!!(k&&e&&e[k])}function l(e){if("string"==typeof e||m(e))return e;var t=e+"";return"0"==t&&1/e==-g?"-0":t}function f(e){return d(e)&&S.call(e,"callee")&&(!M.call(e,"callee")||D.call(e)==O)}function p(e){return null!=e&&y(e.length)&&!h(e)}function d(e){return v(e)&&p(e)}function h(e){var t=b(e)?D.call(e):"";return t==j||t==T}function y(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=w}function b(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function v(e){return!!e&&"object"==typeof e}function m(e){return"symbol"==typeof e||v(e)&&D.call(e)==P}var g=1/0,w=9007199254740991,O="[object Arguments]",j="[object Function]",T="[object GeneratorFunction]",P="[object Symbol]",_="object"==typeof e&&e&&e.Object===Object&&e,E="object"==typeof self&&self&&self.Object===Object&&self,x=_||E||Function("return this")(),q=Object.prototype,S=q.hasOwnProperty,D=q.toString,C=x.Symbol,M=q.propertyIsEnumerable,k=C?C.isConcatSpreadable:void 0,A=Math.max,N=Array.isArray,R=s(function(e,t){return null==e?{}:u(e,r(i(t,1),l))});t.exports=R}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],11:[function(e,t,n){"use strict";function r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function o(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(e){o[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}var i=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;t.exports=o()?Object.assign:function(e,t){for(var n,o,a=r(e),s=1;s<arguments.length;s++){n=Object(arguments[s]);for(var c in n)i.call(n,c)&&(a[c]=n[c]);if(Object.getOwnPropertySymbols){o=Object.getOwnPropertySymbols(n);for(var l=0;l<o.length;l++)u.call(n,o[l])&&(a[o[l]]=n[o[l]])}}return a}},{}],12:[function(e,t,n){function r(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function i(e){if(f===setTimeout)return setTimeout(e,0);if((f===r||!f)&&setTimeout)return f=setTimeout,setTimeout(e,0);try{return f(e,0)}catch(t){try{return f.call(null,e,0)}catch(t){return f.call(this,e,0)}}}function u(e){if(p===clearTimeout)return clearTimeout(e);if((p===o||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(e);try{return p(e)}catch(t){try{return p.call(null,e)}catch(t){return p.call(this,e)}}}function a(){b&&h&&(b=!1,h.length?y=h.concat(y):v=-1,y.length&&s())}function s(){if(!b){var e=i(a);b=!0;for(var t=y.length;t;){for(h=y,y=[];++v<t;)h&&h[v].run();v=-1,t=y.length}h=null,b=!1,u(e)}}function c(e,t){this.fun=e,this.array=t}function l(){}var f,p,d=t.exports={};!function(){try{f="function"==typeof setTimeout?setTimeout:r}catch(e){f=r}try{p="function"==typeof clearTimeout?clearTimeout:o}catch(e){p=o}}();var h,y=[],b=!1,v=-1;d.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];y.push(new c(e,t)),1!==y.length||b||i(s)},c.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=l,d.addListener=l,d.once=l,d.off=l,d.removeListener=l,d.removeAllListeners=l,d.emit=l,d.binding=function(e){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(e){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},{}],13:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(n,r,o){var u=e(n,r,o),s=u.dispatch,c=[],l={getState:u.getState,dispatch:function(e){return s(e)}};return c=t.map(function(e){return e(l)}),s=a.default.apply(void 0,c)(u.dispatch),i({},u,{dispatch:s})}}}n.__esModule=!0;var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};n.default=o;var u=e("./compose"),a=r(u)},{"./compose":16}],14:[function(e,t,n){"use strict";function r(e,t){return function(){return t(e.apply(void 0,arguments))}}function o(e,t){if("function"==typeof e)return r(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');for(var n=Object.keys(e),o={},i=0;i<n.length;i++){var u=n[i],a=e[u];"function"==typeof a&&(o[u]=r(a,t))}return o}n.__esModule=!0,n.default=o},{}],15:[function(e,t,n){(function(t){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n=t&&t.type,r=n&&'"'+n.toString()+'"'||"an action";return"Given action "+r+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state.'}function i(e,t,n,r){var o=Object.keys(t),i=n&&n.type===s.ActionTypes.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(0===o.length)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!(0,l.default)(e))return"The "+i+' has unexpected type of "'+{}.toString.call(e).match(/\s([a-z|A-Z]+)/)[1]+'". Expected argument to be an object with the following '+('keys: "'+o.join('", "')+'"');var u=Object.keys(e).filter(function(e){return!t.hasOwnProperty(e)&&!r[e]});return u.forEach(function(e){r[e]=!0}),u.length>0?"Unexpected "+(u.length>1?"keys":"key")+" "+('"'+u.join('", "')+'" found in '+i+". ")+"Expected to find one of the known reducer keys instead: "+('"'+o.join('", "')+'". Unexpected keys will be ignored.'):void 0}function u(e){Object.keys(e).forEach(function(t){var n=e[t],r=n(void 0,{type:s.ActionTypes.INIT});if("undefined"==typeof r)throw new Error('Reducer "'+t+'" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined.');var o="@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".");if("undefined"==typeof n(void 0,{type:o}))throw new Error('Reducer "'+t+'" returned undefined when probed with a random type. '+("Don't try to handle "+s.ActionTypes.INIT+' or other actions in "redux/*" ')+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined.")})}function a(e){for(var n=Object.keys(e),r={},a=0;a<n.length;a++){var s=n[a];"production"!==t.env.NODE_ENV&&"undefined"==typeof e[s]&&(0,p.default)('No reducer provided for key "'+s+'"'),"function"==typeof e[s]&&(r[s]=e[s])}var c=Object.keys(r);if("production"!==t.env.NODE_ENV)var l={};var f;try{u(r)}catch(e){f=e}return function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],n=arguments[1];if(f)throw f;if("production"!==t.env.NODE_ENV){var u=i(e,r,n,l);u&&(0,p.default)(u)}for(var a=!1,s={},d=0;d<c.length;d++){var h=c[d],y=r[h],b=e[h],v=y(b,n);if("undefined"==typeof v){var m=o(h,n);throw new Error(m)}s[h]=v,a=a||v!==b}return a?s:e}}n.__esModule=!0,n.default=a;var s=e("./createStore"),c=e("lodash/isPlainObject"),l=r(c),f=e("./utils/warning"),p=r(f)}).call(this,e("_process"))},{"./createStore":17,"./utils/warning":19,_process:12,"lodash/isPlainObject":23}],16:[function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(0===t.length)return function(e){return e};if(1===t.length)return t[0];var r=t[t.length-1],o=t.slice(0,-1);return function(){return o.reduceRight(function(e,t){return t(e)},r.apply(void 0,arguments))}}n.__esModule=!0,n.default=r},{}],17:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){function r(){v===b&&(v=b.slice())}function i(){return y}function a(e){if("function"!=typeof e)throw new Error("Expected listener to be a function.");var t=!0;return r(),v.push(e),function(){if(t){t=!1,r();var n=v.indexOf(e);v.splice(n,1)}}}function l(e){if(!(0,u.default)(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if("undefined"==typeof e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(m)throw new Error("Reducers may not dispatch actions.");try{m=!0,y=h(y,e)}finally{m=!1}for(var t=b=v,n=0;n<t.length;n++)t[n]();return e}function f(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");h=e,l({type:c.INIT})}function p(){var e,t=a;return e={subscribe:function(e){function n(){e.next&&e.next(i())}if("object"!=typeof e)throw new TypeError("Expected the observer to be an object.");n();var r=t(n);return{unsubscribe:r}}},e[s.default]=function(){return this},e}var d;if("function"==typeof t&&"undefined"==typeof n&&(n=t,t=void 0),"undefined"!=typeof n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(o)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var h=e,y=t,b=[],v=b,m=!1;return l({type:c.INIT}),d={dispatch:l,subscribe:a,getState:i,replaceReducer:f},d[s.default]=p,d}n.__esModule=!0,n.ActionTypes=void 0,n.default=o;var i=e("lodash/isPlainObject"),u=r(i),a=e("symbol-observable"),s=r(a),c=n.ActionTypes={INIT:"@@redux/INIT"}},{"lodash/isPlainObject":23,"symbol-observable":24}],18:[function(e,t,n){(function(t){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(){}n.__esModule=!0,n.compose=n.applyMiddleware=n.bindActionCreators=n.combineReducers=n.createStore=void 0;var i=e("./createStore"),u=r(i),a=e("./combineReducers"),s=r(a),c=e("./bindActionCreators"),l=r(c),f=e("./applyMiddleware"),p=r(f),d=e("./compose"),h=r(d),y=e("./utils/warning"),b=r(y);"production"!==t.env.NODE_ENV&&"string"==typeof o.name&&"isCrushed"!==o.name&&(0,b.default)("You are currently using minified code outside of NODE_ENV === 'production'. This means that you are running a slower development build of Redux. You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify or DefinePlugin for webpack (http://stackoverflow.com/questions/30030031) to ensure you have the correct code for your production build."),n.createStore=u.default,n.combineReducers=s.default,n.bindActionCreators=l.default,n.applyMiddleware=p.default,n.compose=h.default}).call(this,e("_process"))},{"./applyMiddleware":13,"./bindActionCreators":14,"./combineReducers":15,"./compose":16,"./createStore":17,"./utils/warning":19,_process:12}],19:[function(e,t,n){"use strict";function r(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e);try{throw new Error(e)}catch(e){}}n.__esModule=!0,n.default=r},{}],20:[function(e,t,n){var r=e("./_overArg"),o=r(Object.getPrototypeOf,Object);t.exports=o},{"./_overArg":21}],21:[function(e,t,n){function r(e,t){return function(n){return e(t(n))}}t.exports=r},{}],22:[function(e,t,n){function r(e){return null!=e&&"object"==typeof e}t.exports=r},{}],23:[function(e,t,n){function r(e){if(!i(e)||p.call(e)!=u)return!1;var t=o(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==f}var o=e("./_getPrototype"),i=e("./isObjectLike"),u="[object Object]",a=Function.prototype,s=Object.prototype,c=a.toString,l=s.hasOwnProperty,f=c.call(Object),p=s.toString;t.exports=r},{"./_getPrototype":20,"./isObjectLike":22}],24:[function(e,t,n){t.exports=e("./lib/index")},{"./lib/index":25}],25:[function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var i,u=e("./ponyfill"),a=o(u);i="undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof r?r:"undefined"!=typeof t?t:Function("return this")();var s=(0,a.default)(i);n.default=s}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./ponyfill":26}],26:[function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}Object.defineProperty(n,"__esModule",{value:!0}),n.default=r},{}]},{},[3]);

@@ -120,2 +120,4 @@ "use strict";

return false;
if (opts.forceFetch)
delete opts.forceFetch;
var observable = client.watchQuery(assign({ query: document }, opts));

@@ -122,0 +124,0 @@ var result = observable.currentResult();

import ApolloProvider from './ApolloProvider';
import graphql, { withApollo } from './graphql';
import compose from 'recompose/compose';
import { compose } from 'redux';
export { ApolloProvider, graphql, withApollo, compose };

@@ -7,4 +7,4 @@ "use strict";

exports.withApollo = graphql_1.withApollo;
var compose_1 = require('recompose/compose');
exports.compose = compose_1.default;
var redux_1 = require('redux');
exports.compose = redux_1.compose;
//# sourceMappingURL=index.js.map
{
"name": "react-apollo",
"version": "0.5.13",
"version": "0.5.14",
"description": "React data container for Apollo Client",

@@ -51,5 +51,5 @@ "main": "index.js",

"peerDependencies": {
"apollo-client": "^0.4.21 || ^0.5.0",
"react": "0.14.x || 15.* || ^15.0.0",
"redux": "^2.0.0 || ^3.0.0",
"apollo-client": "^0.4.21 || ^0.5.0"
"redux": "^2.0.0 || ^3.0.0"
},

@@ -62,3 +62,3 @@ "devDependencies": {

"@types/isomorphic-fetch": "0.0.30",
"@types/jest": "^0.9.31",
"@types/jest": "^15.1.32",
"@types/lodash": "^4.14.36",

@@ -87,3 +87,3 @@ "@types/node": "^6.0.38",

"jest": "^15.1.1",
"jest-react-native": "^15.0.0",
"jest-react-native": "^16.0.0",
"jsdom": "^8.3.1",

@@ -94,8 +94,8 @@ "minimist": "^1.2.0",

"pretty-bytes": "^3.0.1",
"react": "^15.0.0",
"react-addons-test-utils": "^15.3.0",
"react-dom": "^15.1.0",
"react-native": "^0.30.0",
"react": "15.3.2",
"react-addons-test-utils": "^15.3.2",
"react-dom": "^15.3.2",
"react-native": "^0.35.0",
"react-redux": "^4.4.5",
"react-test-renderer": "^15.3.0",
"react-test-renderer": "^15.3.2",
"redux": "^3.5.2",

@@ -122,5 +122,4 @@ "redux-form": "^6.0.5",

"lodash.pick": "^4.4.0",
"object-assign": "^4.0.1",
"recompose": "^0.20.2"
"object-assign": "^4.0.1"
}
}

@@ -27,7 +27,2 @@ /// <reference path="./node_modules/typed-graphql/graphql.d.ts" />

declare module 'recompose/compose' {
function hoc(component: any): any;
export default (...hocs) => hoc;
}
declare module 'hoist-non-react-statics' {

@@ -34,0 +29,0 @@ /**

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc