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.1 to 0.5.2

4

Changelog.md

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

### v0.5.2
- Feature: Allow optional variables by passing null value on behalf of the variable [#200](https://github.com/apollostack/react-apollo/pull/200)
### v0.5.1

@@ -9,0 +13,0 @@

2

dist/index.min.js

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

!function t(e,r,n){function o(a,u){if(!r[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=r[a]={exports:{}};e[a][0].call(l.exports,function(t){var r=e[a][1][t];return o(r?r:t)},l,l.exports,t,e,r,n)}return r[a].exports}for(var i="function"==typeof require&&require,a=0;a<n.length;a++)o(n[a]);return o}({1:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("react"),i=t("react"),a=t("invariant"),u=function(t){function e(e,r){return t.call(this,e,r),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 n(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(r,"__esModule",{value:!0}),r.default=u},{invariant:9,react:6}],2:[function(t,e,r){"use strict";function n(t){return t.displayName||t.name||"Component"}function o(t){var e="withApollo("+n(t)+")",r=function(r){function n(t,n){r.call(this,t,n),this.client=n.client,p(!!this.client,'Could not find "client" in the context of '+('"'+e+'". ')+"Wrap the root component in an <ApolloProvider>")}return a(n,r),n.prototype.render=function(){var e=f({},this.props);return e.client=this.client,u.createElement(t,e)},n.displayName=e,n.WrappedComponent=t,n.contextTypes={client:u.PropTypes.object.isRequired},n}(u.Component);return h(r,t)}function i(t,e){void 0===e&&(e={});var r=e.options,o=void 0===r?m:r,i=o;"function"!=typeof i&&(i=function(){return o});var w=e.props,j=b.parser(t),q=O++;return function(r){function o(t){return t||j.fragments.length?t?c(t.concat(j.fragments)):t=c(j.fragments.slice()):t}function m(t,e){var o=i(t);if(e&&e.variables&&(e.variables=f({},o.variables,e.variables)),e&&(o=f({},o,e)),o.variables||!j.variables.length)return o;for(var a={},u=0,s=j.variables;u<s.length;u++){var c=s[u].variable;c.name&&c.name.value&&("undefined"==typeof t[c.name.value]?p("undefined"!=typeof t[c.name.value],"The operation '"+j.name+"' wrapping '"+n(r)+"' "+("is expecting a variable: '"+c.name.value+"' but it was not found in the props ")+("passed to '"+P+"'")):a[c.name.value]=t[c.name.value])}return o.variables=a,o}function O(e,r){var n=r.client;if(j.type===b.DocumentType.Mutation)return!1;var i=m(e);if(i.query=t,i.ssr===!1)return!1;i.variables||delete i.variables,i.fragments=o(i.fragments);try{return d.readQueryFromStore({store:n.store.getState()[n.reduxRootKey].data,query:i.query,variables:i.variables,fragmentMap:y.createFragmentMap(i.fragments)}),!1}catch(t){}return n.query(i)}var P="Apollo("+n(r)+")",T=function(n){function i(t,e){n.call(this,t,e),this.data={},this.version=q,this.client=e.client,p(!!this.client,'Could not find "client" in the context of '+('"'+P+'". ')+"Wrap the root component in an <ApolloProvider>"),this.store=this.client.store,this.type=j.type,this.queryObservable={},this.querySubscription={},this.setInitialProps()}return a(i,n),i.prototype.componentDidMount=function(){this.hasMounted=!0,this.type!==b.DocumentType.Mutation&&this.subscribeToQuery(this.props)},i.prototype.componentWillReceiveProps=function(t){if(!l.default(this.props,t)){if(this.type===b.DocumentType.Mutation)return void this.createWrappedMutation(t,!0);this.haveOwnPropsChanged=!0,this.subscribeToQuery(t)}},i.prototype.shouldComponentUpdate=function(t,e,r){return!!r||this.haveOwnPropsChanged||this.hasOperationDataChanged},i.prototype.componentWillUnmount=function(){this.type===b.DocumentType.Query&&this.unsubscribeFromQuery(),this.hasMounted=!1},i.prototype.calculateOptions=function(t,e){return m(t,e)},i.prototype.calculateResultProps=function(t){var r=this.type===b.DocumentType.Query?"data":"mutate";e.name&&(r=e.name);var n=(o={},o[r]=t,o.ownProps=this.props,o);return w?w(n):(i={},i[r]=_(t),i);var o,i},i.prototype.setInitialProps=function(){var e=this;if(this.type===b.DocumentType.Mutation)return void this.createWrappedMutation(this.props);var r=this.client.reduxRootKey,n=this.calculateOptions(this.props),i=o(n.fragments),a=n,u=a.variables,s=a.forceFetch,c=a.skip,l=f({},g);if(l.variables=u,c&&(l.loading=!1),l.refetch=function(r){return e.client.query({query:t,variables:r})},l.fetchMore=function(r){return r.query=t,e.client.query(r)},!s)try{var p=d.readQueryFromStore({store:this.store.getState()[r].data,query:t,variables:u,fragmentMap:y.createFragmentMap(i)});l=f(l,{errors:null,loading:!1},p)}catch(t){}this.data=l},i.prototype.subscribeToQuery=function(e){var r=this,n=this.client.watchQuery,i=m(e);if(!i.skip){if(s(i,this.previousOpts))return!1;var a=f({},this.previousOpts),u=f({},i);if(delete a.variables,delete u.variables,this.previousOpts&&!l.default(i.variables,this.previousOpts.variables)&&l.default(a,u))return this.hasOperationDataChanged=!0,this.data=f(this.data,{loading:!0,variables:i.variables}),this.forceRenderChildren(),this.queryObservable.refetch(f({},this.previousOpts.variables,i.variables)).then(function(t){return r.data=f(r.data,t.data,{loading:!1}),r.hasOperationDataChanged=!0,r.forceRenderChildren(),t}).catch(function(t){return r.data=f(r.data,{loading:!1,error:t}),r.hasOperationDataChanged=!0,r.forceRenderChildren(),t}),void(this.previousOpts=i);this.previousOpts=i;var c=this.queryObservable;this.unsubscribeFromQuery();var p=f({query:t},i);p.fragments=o(p.fragments);var h=n(p),d=h.queryId;c.queryId&&c.queryId!==d&&(this.data=f(this.data,{loading:!0}),this.hasOperationDataChanged=!0,this.forceRenderChildren()),this.handleQueryData(h,p)}},i.prototype.unsubscribeFromQuery=function(){this.querySubscription.unsubscribe&&(this.querySubscription.unsubscribe(),delete this.queryObservable)},i.prototype.handleQueryData=function(t,e){var r,n,o,i,a,u=this,c=e.variables,l=this.client.reduxRootKey,h={},d=function(e){var c=e.data,d=void 0===c?h:c,y=e.loading,v=e.error,b=t.queryId,g=u.store.getState()[l].queries[b].variables,m="errors"in d||"loading"in d||"refetch"in d||"fetchMore"in d||"startPolling"in d||"stopPolling"in d||"updateQuery"in d;p(!m,"the result of the '"+P+"' operation contains keys that conflict with the return object. 'errors', 'loading', 'startPolling', 'stopPolling', 'fetchMore', 'updateQuery', and 'refetch' cannot be returned keys"),s(h,d)&&y===u.data.loading||(u.hasOperationDataChanged=!0),h=f({},d),u.data=f({variables:u.data.variables||g,loading:y,refetch:r,startPolling:o,stopPolling:i,fetchMore:n,error:v,updateQuery:a},d),u.forceRenderChildren()},y=function(t){return function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var o=e,i={loading:!0};return e&&(e.variables||e.query||e.updateQuery)&&(o=f({},u.data.variables,e.variables),i.variables=o),u.data=f(u.data,i),u.hasOperationDataChanged=!0,u.forceRenderChildren(),t.apply(void 0,[e].concat(r)).then(function(t){return t&&s(t.data,h)&&d(t),t})}};this.queryObservable=t;var b=function(t){if(t instanceof v.ApolloError)return d({error:t});throw t};this.querySubscription=t.subscribe({next:d,error:b}),r=y(this.queryObservable.refetch),n=y(this.queryObservable.fetchMore),o=this.queryObservable.startPolling,i=this.queryObservable.stopPolling,a=this.queryObservable.updateQuery,delete this.data.error,this.data=f(this.data,{refetch:r,startPolling:o,stopPolling:i,fetchMore:n,updateQuery:a,variables:c})},i.prototype.forceRenderChildren=function(){this.hasMounted&&this.setState({})},i.prototype.getWrappedInstance=function(){return p(e.withRef,"To access the wrapped instance, you need to specify { withRef: true } in the options"),this.refs.wrappedInstance},i.prototype.createWrappedMutation=function(e,r){var n=this;void 0===r&&(r=!1),this.type===b.DocumentType.Mutation&&(this.data=function(r){return r=n.calculateOptions(e,r),"undefined"==typeof r.variables&&delete r.variables,r.mutation=t,r.fragments=o(r.fragments),n.client.mutate(r)},r&&(this.hasOperationDataChanged=!0,this.forceRenderChildren()))},i.prototype.render=function(){var t=this,n=t.haveOwnPropsChanged,o=t.hasOperationDataChanged,i=t.renderedElement,a=t.props,s=t.data;this.haveOwnPropsChanged=!1,this.hasOperationDataChanged=!1;var c=this.calculateResultProps(s),l=f({},a,c);return n||o||!i?(e.withRef&&(l.ref="wrappedInstance"),this.renderedElement=u.createElement(r,l),this.renderedElement):i},i.displayName=P,i.WrappedComponent=r,i.contextTypes={store:u.PropTypes.object.isRequired,client:u.PropTypes.object.isRequired},i.fragments=j.fragments,i}(u.Component);return j.type===b.DocumentType.Query&&(T.fetchData=O),h(T,r)}}var a=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},u=t("react"),s=t("lodash.isequal"),c=t("lodash.flatten"),l=t("./shallowEqual"),p=t("invariant"),f=t("object-assign"),h=t("hoist-non-react-statics"),d=t("apollo-client"),y=t("apollo-client/queries/getFromAST"),v=t("apollo-client/errors"),b=t("./parser"),g={loading:!0,errors:null},m=function(t){return{}},_=function(t){return t},O=0;r.withApollo=o,Object.defineProperty(r,"__esModule",{value:!0}),r.default=i},{"./parser":4,"./shallowEqual":5,"apollo-client":6,"apollo-client/errors":6,"apollo-client/queries/getFromAST":6,"hoist-non-react-statics":8,invariant:9,"lodash.flatten":10,"lodash.isequal":11,"object-assign":12,react:6}],3:[function(t,e,r){"use strict";var n=t("./ApolloProvider");r.ApolloProvider=n.default;var o=t("./graphql");r.graphql=o.default,r.withApollo=o.withApollo;var i=t("recompose/compose");r.compose=i.default},{"./ApolloProvider":1,"./graphql":2,"recompose/compose":13}],4:[function(t,e,r){"use strict";function n(t){var e,r,n,u,s,c,l;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()}),r=t.definitions.filter(function(t){return"OperationDefinition"===t.kind&&"query"===t.operation}),n=t.definitions.filter(function(t){return"OperationDefinition"===t.kind&&"mutation"===t.operation}),!e.length||r.length&&n.length||i(!0,"Passing only a fragment to 'graphql' is not yet supported. You must include a query or mutation as well"),r.length&&n.length&&i(r.length&&n.length,"react-apollo only supports a query or a mutation per HOC. "+t+" had "+r.length+" queries and "+n.length+" muations. You can use 'combineOperations' to join multiple operation types to a component"),c=r.length?a.Query:a.Mutation,s=r.length?r:n,1!==s.length&&i(1!==s.length,"react-apollo only supports one defintion per HOC. "+t+" had "+s.length+" definitions. You can use 'combineOperations' to join multiple operation types to a component"),u=s[0].variableDefinitions||[];var p=s[0].name&&"Name"===s[0].name.kind;return l=p?s[0].name.value:"data",e=e.length?e:[],{name:l,type:c,variables:u,fragments:e}}var o=t("apollo-client"),i=t("invariant");!function(t){t[t.Query=0]="Query",t[t.Mutation=1]="Mutation"}(r.DocumentType||(r.DocumentType={}));var a=r.DocumentType;r.parser=n},{"apollo-client":6,invariant:9}],5:[function(t,e,r){"use strict";function n(t,e){if(!t||!e)return!0;if(t===e)return!0;var r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(var o=Object.prototype.hasOwnProperty,i=0;i<r.length;i++)if(!o.call(e,r[i])||t[r[i]]!==e[r[i]])return!1;return!0}Object.defineProperty(r,"__esModule",{value:!0}),r.default=n},{}],6:[function(t,e,r){},{}],7:[function(t,e,r){function n(){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===n||!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(){v&&d&&(v=!1,d.length?y=d.concat(y):b=-1,y.length&&s())}function s(){if(!v){var t=i(u);v=!0;for(var e=y.length;e;){for(d=y,y=[];++b<e;)d&&d[b].run();b=-1,e=y.length}d=null,v=!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:n}catch(t){p=n}try{f="function"==typeof clearTimeout?clearTimeout:o}catch(t){f=o}}();var d,y=[],v=!1,b=-1;h.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];y.push(new c(t,e)),1!==y.length||v||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,r){"use strict";var n={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,r){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(!(n[a[u]]||o[a[u]]||r&&r[a[u]]))try{t[a[u]]=e[a[u]]}catch(t){}}return t}},{}],9:[function(t,e,r){(function(t){"use strict";var r=function(e,r,n,o,i,a,u,s){if("production"!==t.env.NODE_ENV&&void 0===r)throw new Error("invariant requires an error message argument");if(!e){var c;if(void 0===r)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,o,i,a,u,s],p=0;c=new Error(r.replace(/%s/g,function(){return l[p++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}};e.exports=r}).call(this,t("_process"))},{_process:7}],10:[function(t,e,r){(function(t){function r(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}function n(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?n(l,e-1,i,a,u):r(u,l):a||(u[u.length]=l)}return u}function o(t){return T(t)||a(t)||!!(P&&t&&t[P])}function i(t){var e=t?t.length:0;return e?n(t,1):[]}function a(t){return s(t)&&O.call(t,"callee")&&(!q.call(t,"callee")||w.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)?w.call(t):"";return e==y||e==v}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]",v="[object GeneratorFunction]",b="object"==typeof t&&t&&t.Object===Object&&t,g="object"==typeof self&&self&&self.Object===Object&&self,m=b||g||Function("return this")(),_=Object.prototype,O=_.hasOwnProperty,w=_.toString,j=m.Symbol,q=_.propertyIsEnumerable,P=j?j.isConcatSpreadable:void 0,T=Array.isArray;e.exports=i}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],11:[function(t,e,r){(function(t){function n(t,e){for(var r=-1,n=t?t.length:0;++r<n;)if(e(t[r],r,t))return!0;return!1}function o(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}function i(t){return function(e){return t(e)}}function a(t,e){return null==t?void 0:t[e]}function u(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function s(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}function c(t,e){return function(r){return t(e(r))}}function l(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}function p(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function f(){this.__data__=we?we(null):{}}function h(t){return this.has(t)&&delete this.__data__[t]}function d(t){var e=this.__data__;if(we){var r=e[t];return r===ht?void 0:r}return ce.call(e,t)?e[t]:void 0}function y(t){var e=this.__data__;return we?void 0!==e[t]:ce.call(e,t)}function v(t,e){var r=this.__data__;return r[t]=we&&void 0===e?ht:e,this}function b(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function g(){this.__data__=[]}function m(t){var e=this.__data__,r=N(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():ye.call(e,r,1),!0}function _(t){var e=this.__data__,r=N(e,t);return r<0?void 0:e[r][1]}function O(t){return N(this.__data__,t)>-1}function w(t,e){var r=this.__data__,n=N(r,t);return n<0?r.push([t,e]):r[n][1]=e,this}function j(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function q(){this.__data__={hash:new p,map:new(ge||b),string:new p}}function P(t){return K(this,t).delete(t)}function T(t){return K(this,t).get(t)}function C(t){return K(this,t).has(t)}function A(t,e){return K(this,t).set(t,e),this}function D(t){var e=-1,r=t?t.length:0;for(this.__data__=new j;++e<r;)this.add(t[e])}function M(t){return this.__data__.set(t,ht),this}function S(t){return this.__data__.has(t)}function x(t){this.__data__=new b(t)}function E(){this.__data__=new b}function R(t){return this.__data__.delete(t)}function k(t){return this.__data__.get(t)}function Q(t){return this.__data__.has(t)}function F(t,e){var r=this.__data__;if(r instanceof b){var n=r.__data__;if(!ge||n.length<ft-1)return n.push([t,e]),this;r=this.__data__=new j(n)}return r.set(t,e),this}function I(t,e){var r=Se(t)||nt(t)?o(t.length,String):[],n=r.length,i=!!n;for(var a in t)!e&&!ce.call(t,a)||i&&("length"==a||J(a,n))||r.push(a);return r}function N(t,e){for(var r=t.length;r--;)if(rt(t[r][0],e))return r;return-1}function W(t){return le.call(t)}function L(t,e,r,n,o){return t===e||(null==t||null==e||!ct(t)&&!lt(e)?t!==t&&e!==e:U(t,e,L,r,n,o))}function U(t,e,r,n,o,i){var a=Se(t),s=Se(e),c=gt,l=gt;a||(c=Me(t),c=c==bt?Tt:c),s||(l=Me(e),l=l==bt?Tt:l);var p=c==Tt&&!u(t),f=l==Tt&&!u(e),h=c==l;if(h&&!p)return i||(i=new x),a||xe(t)?Y(t,e,r,n,o,i):B(t,e,c,r,n,o,i);if(!(o&yt)){var d=p&&ce.call(t,"__wrapped__"),y=f&&ce.call(e,"__wrapped__");if(d||y){var v=d?t.value():t,b=y?e.value():e;return i||(i=new x),r(v,b,n,o,i)}}return!!h&&(i||(i=new x),G(t,e,r,n,o,i))}function $(t){if(!ct(t)||Z(t))return!1;var e=ut(t)||u(t)?pe:Vt;return e.test(et(t))}function z(t){return lt(t)&&st(t.length)&&!!Bt[le.call(t)]}function V(t){if(!tt(t))return ve(t);var e=[];for(var r in Object(t))ce.call(t,r)&&"constructor"!=r&&e.push(r);return e}function Y(t,e,r,o,i,a){var u=i&yt,s=t.length,c=e.length;if(s!=c&&!(u&&c>s))return!1;var l=a.get(t);if(l&&a.get(e))return l==e;var p=-1,f=!0,h=i&dt?new D:void 0;for(a.set(t,e),a.set(e,t);++p<s;){var d=t[p],y=e[p];if(o)var v=u?o(y,d,p,e,t,a):o(d,y,p,t,e,a);if(void 0!==v){if(v)continue;f=!1;break}if(h){if(!n(e,function(t,e){if(!h.has(e)&&(d===t||r(d,t,o,i,a)))return h.add(e)})){f=!1;break}}else if(d!==y&&!r(d,y,o,i,a)){f=!1;break}}return a.delete(t),a.delete(e),f}function B(t,e,r,n,o,i,a){switch(r){case Rt:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case Et:return!(t.byteLength!=e.byteLength||!n(new he(t),new he(e)));case mt:case _t:case Pt:return rt(+t,+e);case Ot:return t.name==e.name&&t.message==e.message;case At:case Mt:return t==e+"";case qt:var u=s;case Dt:var c=i&yt;if(u||(u=l),t.size!=e.size&&!c)return!1;var p=a.get(t);if(p)return p==e;i|=dt,a.set(t,e);var f=Y(u(t),u(e),n,o,i,a);return a.delete(t),f;case St:if(De)return De.call(t)==De.call(e)}return!1}function G(t,e,r,n,o,i){var a=o&yt,u=pt(t),s=u.length,c=pt(e),l=c.length;if(s!=l&&!a)return!1;for(var p=s;p--;){var f=u[p];if(!(a?f in e:ce.call(e,f)))return!1}var h=i.get(t);if(h&&i.get(e))return h==e;var d=!0;i.set(t,e),i.set(e,t);for(var y=a;++p<s;){f=u[p];var v=t[f],b=e[f];if(n)var g=a?n(b,v,f,e,t,i):n(v,b,f,t,e,i);if(!(void 0===g?v===b||r(v,b,n,o,i):g)){d=!1;break}y||(y="constructor"==f)}if(d&&!y){var m=t.constructor,_=e.constructor;m!=_&&"constructor"in t&&"constructor"in e&&!("function"==typeof m&&m instanceof m&&"function"==typeof _&&_ instanceof _)&&(d=!1)}return i.delete(t),i.delete(e),d}function K(t,e){var r=t.__data__;return X(e)?r["string"==typeof e?"string":"hash"]:r.map}function H(t,e){var r=a(t,e);return $(r)?r:void 0}function J(t,e){return e=null==e?vt:e,!!e&&("number"==typeof t||Yt.test(t))&&t>-1&&t%1==0&&t<e}function X(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}function Z(t){return!!ue&&ue in t}function tt(t){var e=t&&t.constructor,r="function"==typeof e&&e.prototype||ie;return t===r}function et(t){if(null!=t){try{return se.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function rt(t,e){return t===e||t!==t&&e!==e}function nt(t){return it(t)&&ce.call(t,"callee")&&(!de.call(t,"callee")||le.call(t)==bt)}function ot(t){return null!=t&&st(t.length)&&!ut(t)}function it(t){return lt(t)&&ot(t)}function at(t,e){return L(t,e)}function ut(t){var e=ct(t)?le.call(t):"";return e==wt||e==jt}function st(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=vt}function ct(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function lt(t){return!!t&&"object"==typeof t}function pt(t){return ot(t)?I(t):V(t)}var ft=200,ht="__lodash_hash_undefined__",dt=1,yt=2,vt=9007199254740991,bt="[object Arguments]",gt="[object Array]",mt="[object Boolean]",_t="[object Date]",Ot="[object Error]",wt="[object Function]",jt="[object GeneratorFunction]",qt="[object Map]",Pt="[object Number]",Tt="[object Object]",Ct="[object Promise]",At="[object RegExp]",Dt="[object Set]",Mt="[object String]",St="[object Symbol]",xt="[object WeakMap]",Et="[object ArrayBuffer]",Rt="[object DataView]",kt="[object Float32Array]",Qt="[object Float64Array]",Ft="[object Int8Array]",It="[object Int16Array]",Nt="[object Int32Array]",Wt="[object Uint8Array]",Lt="[object Uint8ClampedArray]",Ut="[object Uint16Array]",$t="[object Uint32Array]",zt=/[\\^$.*+?()[\]{}|]/g,Vt=/^\[object .+?Constructor\]$/,Yt=/^(?:0|[1-9]\d*)$/,Bt={};Bt[kt]=Bt[Qt]=Bt[Ft]=Bt[It]=Bt[Nt]=Bt[Wt]=Bt[Lt]=Bt[Ut]=Bt[$t]=!0,Bt[bt]=Bt[gt]=Bt[Et]=Bt[mt]=Bt[Rt]=Bt[_t]=Bt[Ot]=Bt[wt]=Bt[qt]=Bt[Pt]=Bt[Tt]=Bt[At]=Bt[Dt]=Bt[Mt]=Bt[xt]=!1;var Gt="object"==typeof t&&t&&t.Object===Object&&t,Kt="object"==typeof self&&self&&self.Object===Object&&self,Ht=Gt||Kt||Function("return this")(),Jt="object"==typeof r&&r&&!r.nodeType&&r,Xt=Jt&&"object"==typeof e&&e&&!e.nodeType&&e,Zt=Xt&&Xt.exports===Jt,te=Zt&&Gt.process,ee=function(){try{return te&&te.binding("util")}catch(t){}}(),re=ee&&ee.isTypedArray,ne=Array.prototype,oe=Function.prototype,ie=Object.prototype,ae=Ht["__core-js_shared__"],ue=function(){var t=/[^.]+$/.exec(ae&&ae.keys&&ae.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),se=oe.toString,ce=ie.hasOwnProperty,le=ie.toString,pe=RegExp("^"+se.call(ce).replace(zt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),fe=Ht.Symbol,he=Ht.Uint8Array,de=ie.propertyIsEnumerable,ye=ne.splice,ve=c(Object.keys,Object),be=H(Ht,"DataView"),ge=H(Ht,"Map"),me=H(Ht,"Promise"),_e=H(Ht,"Set"),Oe=H(Ht,"WeakMap"),we=H(Object,"create"),je=et(be),qe=et(ge),Pe=et(me),Te=et(_e),Ce=et(Oe),Ae=fe?fe.prototype:void 0,De=Ae?Ae.valueOf:void 0;p.prototype.clear=f,p.prototype.delete=h,p.prototype.get=d,p.prototype.has=y,p.prototype.set=v,b.prototype.clear=g,b.prototype.delete=m,b.prototype.get=_,b.prototype.has=O,b.prototype.set=w,j.prototype.clear=q,j.prototype.delete=P,j.prototype.get=T,j.prototype.has=C,j.prototype.set=A,D.prototype.add=D.prototype.push=M,D.prototype.has=S,x.prototype.clear=E,x.prototype.delete=R,x.prototype.get=k,x.prototype.has=Q,x.prototype.set=F;var Me=W;(be&&Me(new be(new ArrayBuffer(1)))!=Rt||ge&&Me(new ge)!=qt||me&&Me(me.resolve())!=Ct||_e&&Me(new _e)!=Dt||Oe&&Me(new Oe)!=xt)&&(Me=function(t){var e=le.call(t),r=e==Tt?t.constructor:void 0,n=r?et(r):void 0;if(n)switch(n){case je:return Rt;case qe:return qt;case Pe:return Ct;case Te:return Dt;case Ce:return xt}return e});var Se=Array.isArray,xe=re?i(re):z;e.exports=at}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],12:[function(t,e,r){"use strict";function n(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={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(e).map(function(t){return e[t]});if("0123456789"!==n.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 r,o,u=n(t),s=1;s<arguments.length;s++){r=Object(arguments[s]);for(var c in r)i.call(r,c)&&(u[c]=r[c]);if(Object.getOwnPropertySymbols){o=Object.getOwnPropertySymbols(r);for(var l=0;l<o.length;l++)a.call(r,o[l])&&(u[o[l]]=r[o[l]])}}return u}},{}],13:[function(t,e,r){"use strict";function n(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];if(0===e.length)return function(t){return t};if(1===e.length)return e[0];var n=e[e.length-1];return function(){for(var t=n.apply(void 0,arguments),r=e.length-2;r>=0;r--){var o=e[r];t=o(t)}return t}}r.__esModule=!0,r.default=n},{}]},{},[3]);
!function t(e,r,n){function o(a,u){if(!r[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=r[a]={exports:{}};e[a][0].call(l.exports,function(t){var r=e[a][1][t];return o(r?r:t)},l,l.exports,t,e,r,n)}return r[a].exports}for(var i="function"==typeof require&&require,a=0;a<n.length;a++)o(n[a]);return o}({1:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("react"),i=t("react"),a=t("invariant"),u=function(t){function e(e,r){return t.call(this,e,r),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 n(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(r,"__esModule",{value:!0}),r.default=u},{invariant:9,react:6}],2:[function(t,e,r){"use strict";function n(t){return t.displayName||t.name||"Component"}function o(t){var e="withApollo("+n(t)+")",r=function(r){function n(t,n){r.call(this,t,n),this.client=n.client,p(!!this.client,'Could not find "client" in the context of '+('"'+e+'". ')+"Wrap the root component in an <ApolloProvider>")}return a(n,r),n.prototype.render=function(){var e=f({},this.props);return e.client=this.client,u.createElement(t,e)},n.displayName=e,n.WrappedComponent=t,n.contextTypes={client:u.PropTypes.object.isRequired},n}(u.Component);return h(r,t)}function i(t,e){void 0===e&&(e={});var r=e.options,o=void 0===r?m:r,i=o;"function"!=typeof i&&(i=function(){return o});var w=e.props,j=b.parser(t),q=O++;return function(r){function o(t){return t||j.fragments.length?t?c(t.concat(j.fragments)):t=c(j.fragments.slice()):t}function m(t,e){var o=i(t);if(e&&e.variables&&(e.variables=f({},o.variables,e.variables)),e&&(o=f({},o,e)),o.variables||!j.variables.length)return o;for(var a={},u=0,s=j.variables;u<s.length;u++){var c=s[u],l=c.variable,h=c.type;l.name&&l.name.value&&("undefined"==typeof t[l.name.value]?"NonNullType"===h.kind?p("undefined"!=typeof t[l.name.value],"The operation '"+j.name+"' wrapping '"+n(r)+"' "+("is expecting a variable: '"+l.name.value+"' but it was not found in the props ")+("passed to '"+T+"'")):a[l.name.value]=null:a[l.name.value]=t[l.name.value])}return o.variables=a,o}function O(e,r){var n=r.client;if(j.type===b.DocumentType.Mutation)return!1;var i=m(e);if(i.query=t,i.ssr===!1)return!1;i.variables||delete i.variables,i.fragments=o(i.fragments);try{return d.readQueryFromStore({store:n.store.getState()[n.reduxRootKey].data,query:i.query,variables:i.variables,fragmentMap:y.createFragmentMap(i.fragments)}),!1}catch(t){}return n.query(i)}var T="Apollo("+n(r)+")",P=function(n){function i(t,e){n.call(this,t,e),this.data={},this.version=q,this.client=e.client,p(!!this.client,'Could not find "client" in the context of '+('"'+T+'". ')+"Wrap the root component in an <ApolloProvider>"),this.store=this.client.store,this.type=j.type,this.queryObservable={},this.querySubscription={},this.setInitialProps()}return a(i,n),i.prototype.componentDidMount=function(){this.hasMounted=!0,this.type!==b.DocumentType.Mutation&&this.subscribeToQuery(this.props)},i.prototype.componentWillReceiveProps=function(t){if(!l.default(this.props,t)){if(this.type===b.DocumentType.Mutation)return void this.createWrappedMutation(t,!0);this.haveOwnPropsChanged=!0,this.subscribeToQuery(t)}},i.prototype.shouldComponentUpdate=function(t,e,r){return!!r||this.haveOwnPropsChanged||this.hasOperationDataChanged},i.prototype.componentWillUnmount=function(){this.type===b.DocumentType.Query&&this.unsubscribeFromQuery(),this.hasMounted=!1},i.prototype.calculateOptions=function(t,e){return m(t,e)},i.prototype.calculateResultProps=function(t){var r=this.type===b.DocumentType.Query?"data":"mutate";e.name&&(r=e.name);var n=(o={},o[r]=t,o.ownProps=this.props,o);return w?w(n):(i={},i[r]=_(t),i);var o,i},i.prototype.setInitialProps=function(){var e=this;if(this.type===b.DocumentType.Mutation)return void this.createWrappedMutation(this.props);var r=this.client.reduxRootKey,n=this.calculateOptions(this.props),i=o(n.fragments),a=n,u=a.variables,s=a.forceFetch,c=a.skip,l=f({},g);if(l.variables=u,c&&(l.loading=!1),l.refetch=function(r){return e.client.query({query:t,variables:r})},l.fetchMore=function(r){return r.query=t,e.client.query(r)},!s)try{var p=d.readQueryFromStore({store:this.store.getState()[r].data,query:t,variables:u,fragmentMap:y.createFragmentMap(i)});l=f(l,{errors:null,loading:!1},p)}catch(t){}this.data=l},i.prototype.subscribeToQuery=function(e){var r=this,n=this.client.watchQuery,i=m(e);if(!i.skip){if(s(i,this.previousOpts))return!1;var a=f({},this.previousOpts),u=f({},i);if(delete a.variables,delete u.variables,this.previousOpts&&!l.default(i.variables,this.previousOpts.variables)&&l.default(a,u))return this.hasOperationDataChanged=!0,this.data=f(this.data,{loading:!0,variables:i.variables}),this.forceRenderChildren(),this.queryObservable.refetch(f({},this.previousOpts.variables,i.variables)).then(function(t){return r.data=f(r.data,t.data,{loading:!1}),r.hasOperationDataChanged=!0,r.forceRenderChildren(),t}).catch(function(t){return r.data=f(r.data,{loading:!1,error:t}),r.hasOperationDataChanged=!0,r.forceRenderChildren(),t}),void(this.previousOpts=i);this.previousOpts=i;var c=this.queryObservable;this.unsubscribeFromQuery();var p=f({query:t},i);p.fragments=o(p.fragments);var h=n(p),d=h.queryId;c.queryId&&c.queryId!==d&&(this.data=f(this.data,{loading:!0}),this.hasOperationDataChanged=!0,this.forceRenderChildren()),this.handleQueryData(h,p)}},i.prototype.unsubscribeFromQuery=function(){this.querySubscription.unsubscribe&&(this.querySubscription.unsubscribe(),delete this.queryObservable)},i.prototype.handleQueryData=function(t,e){var r,n,o,i,a,u=this,c=e.variables,l=this.client.reduxRootKey,h={},d=function(e){var c=e.data,d=void 0===c?h:c,y=e.loading,v=e.error,b=t.queryId,g=u.store.getState()[l].queries[b].variables,m="errors"in d||"loading"in d||"refetch"in d||"fetchMore"in d||"startPolling"in d||"stopPolling"in d||"updateQuery"in d;p(!m,"the result of the '"+T+"' operation contains keys that conflict with the return object. 'errors', 'loading', 'startPolling', 'stopPolling', 'fetchMore', 'updateQuery', and 'refetch' cannot be returned keys"),s(h,d)&&y===u.data.loading||(u.hasOperationDataChanged=!0),h=f({},d),u.data=f({variables:u.data.variables||g,loading:y,refetch:r,startPolling:o,stopPolling:i,fetchMore:n,error:v,updateQuery:a},d),u.forceRenderChildren()},y=function(t){return function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var o=e,i={loading:!0};return e&&(e.variables||e.query||e.updateQuery)&&(o=f({},u.data.variables,e.variables),i.variables=o),u.data=f(u.data,i),u.hasOperationDataChanged=!0,u.forceRenderChildren(),t.apply(void 0,[e].concat(r)).then(function(t){return t&&s(t.data,h)&&d(t),t})}};this.queryObservable=t;var b=function(t){if(t instanceof v.ApolloError)return d({error:t});throw t};this.querySubscription=t.subscribe({next:d,error:b}),r=y(this.queryObservable.refetch),n=y(this.queryObservable.fetchMore),o=this.queryObservable.startPolling,i=this.queryObservable.stopPolling,a=this.queryObservable.updateQuery,delete this.data.error,this.data=f(this.data,{refetch:r,startPolling:o,stopPolling:i,fetchMore:n,updateQuery:a,variables:c})},i.prototype.forceRenderChildren=function(){this.hasMounted&&this.setState({})},i.prototype.getWrappedInstance=function(){return p(e.withRef,"To access the wrapped instance, you need to specify { withRef: true } in the options"),this.refs.wrappedInstance},i.prototype.createWrappedMutation=function(e,r){var n=this;void 0===r&&(r=!1),this.type===b.DocumentType.Mutation&&(this.data=function(r){return r=n.calculateOptions(e,r),"undefined"==typeof r.variables&&delete r.variables,r.mutation=t,r.fragments=o(r.fragments),n.client.mutate(r)},r&&(this.hasOperationDataChanged=!0,this.forceRenderChildren()))},i.prototype.render=function(){var t=this,n=t.haveOwnPropsChanged,o=t.hasOperationDataChanged,i=t.renderedElement,a=t.props,s=t.data;this.haveOwnPropsChanged=!1,this.hasOperationDataChanged=!1;var c=this.calculateResultProps(s),l=f({},a,c);return n||o||!i?(e.withRef&&(l.ref="wrappedInstance"),this.renderedElement=u.createElement(r,l),this.renderedElement):i},i.displayName=T,i.WrappedComponent=r,i.contextTypes={store:u.PropTypes.object.isRequired,client:u.PropTypes.object.isRequired},i.fragments=j.fragments,i}(u.Component);return j.type===b.DocumentType.Query&&(P.fetchData=O),h(P,r)}}var a=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},u=t("react"),s=t("lodash.isequal"),c=t("lodash.flatten"),l=t("./shallowEqual"),p=t("invariant"),f=t("object-assign"),h=t("hoist-non-react-statics"),d=t("apollo-client"),y=t("apollo-client/queries/getFromAST"),v=t("apollo-client/errors"),b=t("./parser"),g={loading:!0,errors:null},m=function(t){return{}},_=function(t){return t},O=0;r.withApollo=o,Object.defineProperty(r,"__esModule",{value:!0}),r.default=i},{"./parser":4,"./shallowEqual":5,"apollo-client":6,"apollo-client/errors":6,"apollo-client/queries/getFromAST":6,"hoist-non-react-statics":8,invariant:9,"lodash.flatten":10,"lodash.isequal":11,"object-assign":12,react:6}],3:[function(t,e,r){"use strict";var n=t("./ApolloProvider");r.ApolloProvider=n.default;var o=t("./graphql");r.graphql=o.default,r.withApollo=o.withApollo;var i=t("recompose/compose");r.compose=i.default},{"./ApolloProvider":1,"./graphql":2,"recompose/compose":13}],4:[function(t,e,r){"use strict";function n(t){var e,r,n,u,s,c,l;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()}),r=t.definitions.filter(function(t){return"OperationDefinition"===t.kind&&"query"===t.operation}),n=t.definitions.filter(function(t){return"OperationDefinition"===t.kind&&"mutation"===t.operation}),!e.length||r.length&&n.length||i(!0,"Passing only a fragment to 'graphql' is not yet supported. You must include a query or mutation as well"),r.length&&n.length&&i(r.length&&n.length,"react-apollo only supports a query or a mutation per HOC. "+t+" had "+r.length+" queries and "+n.length+" muations. You can use 'combineOperations' to join multiple operation types to a component"),c=r.length?a.Query:a.Mutation,s=r.length?r:n,1!==s.length&&i(1!==s.length,"react-apollo only supports one defintion per HOC. "+t+" had "+s.length+" definitions. You can use 'combineOperations' to join multiple operation types to a component"),u=s[0].variableDefinitions||[];var p=s[0].name&&"Name"===s[0].name.kind;return l=p?s[0].name.value:"data",e=e.length?e:[],{name:l,type:c,variables:u,fragments:e}}var o=t("apollo-client"),i=t("invariant");!function(t){t[t.Query=0]="Query",t[t.Mutation=1]="Mutation"}(r.DocumentType||(r.DocumentType={}));var a=r.DocumentType;r.parser=n},{"apollo-client":6,invariant:9}],5:[function(t,e,r){"use strict";function n(t,e){if(!t||!e)return!0;if(t===e)return!0;var r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(var o=Object.prototype.hasOwnProperty,i=0;i<r.length;i++)if(!o.call(e,r[i])||t[r[i]]!==e[r[i]])return!1;return!0}Object.defineProperty(r,"__esModule",{value:!0}),r.default=n},{}],6:[function(t,e,r){},{}],7:[function(t,e,r){function n(){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===n||!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(){v&&d&&(v=!1,d.length?y=d.concat(y):b=-1,y.length&&s())}function s(){if(!v){var t=i(u);v=!0;for(var e=y.length;e;){for(d=y,y=[];++b<e;)d&&d[b].run();b=-1,e=y.length}d=null,v=!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:n}catch(t){p=n}try{f="function"==typeof clearTimeout?clearTimeout:o}catch(t){f=o}}();var d,y=[],v=!1,b=-1;h.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];y.push(new c(t,e)),1!==y.length||v||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,r){"use strict";var n={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,r){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(!(n[a[u]]||o[a[u]]||r&&r[a[u]]))try{t[a[u]]=e[a[u]]}catch(t){}}return t}},{}],9:[function(t,e,r){(function(t){"use strict";var r=function(e,r,n,o,i,a,u,s){if("production"!==t.env.NODE_ENV&&void 0===r)throw new Error("invariant requires an error message argument");if(!e){var c;if(void 0===r)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,o,i,a,u,s],p=0;c=new Error(r.replace(/%s/g,function(){return l[p++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}};e.exports=r}).call(this,t("_process"))},{_process:7}],10:[function(t,e,r){(function(t){function r(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}function n(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?n(l,e-1,i,a,u):r(u,l):a||(u[u.length]=l)}return u}function o(t){return P(t)||a(t)||!!(T&&t&&t[T])}function i(t){var e=t?t.length:0;return e?n(t,1):[]}function a(t){return s(t)&&O.call(t,"callee")&&(!q.call(t,"callee")||w.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)?w.call(t):"";return e==y||e==v}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]",v="[object GeneratorFunction]",b="object"==typeof t&&t&&t.Object===Object&&t,g="object"==typeof self&&self&&self.Object===Object&&self,m=b||g||Function("return this")(),_=Object.prototype,O=_.hasOwnProperty,w=_.toString,j=m.Symbol,q=_.propertyIsEnumerable,T=j?j.isConcatSpreadable:void 0,P=Array.isArray;e.exports=i}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],11:[function(t,e,r){(function(t){function n(t,e){for(var r=-1,n=t?t.length:0;++r<n;)if(e(t[r],r,t))return!0;return!1}function o(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}function i(t){return function(e){return t(e)}}function a(t,e){return null==t?void 0:t[e]}function u(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function s(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}function c(t,e){return function(r){return t(e(r))}}function l(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}function p(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function f(){this.__data__=we?we(null):{}}function h(t){return this.has(t)&&delete this.__data__[t]}function d(t){var e=this.__data__;if(we){var r=e[t];return r===ht?void 0:r}return ce.call(e,t)?e[t]:void 0}function y(t){var e=this.__data__;return we?void 0!==e[t]:ce.call(e,t)}function v(t,e){var r=this.__data__;return r[t]=we&&void 0===e?ht:e,this}function b(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function g(){this.__data__=[]}function m(t){var e=this.__data__,r=N(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():ye.call(e,r,1),!0}function _(t){var e=this.__data__,r=N(e,t);return r<0?void 0:e[r][1]}function O(t){return N(this.__data__,t)>-1}function w(t,e){var r=this.__data__,n=N(r,t);return n<0?r.push([t,e]):r[n][1]=e,this}function j(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function q(){this.__data__={hash:new p,map:new(ge||b),string:new p}}function T(t){return K(this,t).delete(t)}function P(t){return K(this,t).get(t)}function C(t){return K(this,t).has(t)}function A(t,e){return K(this,t).set(t,e),this}function D(t){var e=-1,r=t?t.length:0;for(this.__data__=new j;++e<r;)this.add(t[e])}function M(t){return this.__data__.set(t,ht),this}function S(t){return this.__data__.has(t)}function x(t){this.__data__=new b(t)}function E(){this.__data__=new b}function R(t){return this.__data__.delete(t)}function k(t){return this.__data__.get(t)}function Q(t){return this.__data__.has(t)}function F(t,e){var r=this.__data__;if(r instanceof b){var n=r.__data__;if(!ge||n.length<ft-1)return n.push([t,e]),this;r=this.__data__=new j(n)}return r.set(t,e),this}function I(t,e){var r=Se(t)||nt(t)?o(t.length,String):[],n=r.length,i=!!n;for(var a in t)!e&&!ce.call(t,a)||i&&("length"==a||J(a,n))||r.push(a);return r}function N(t,e){for(var r=t.length;r--;)if(rt(t[r][0],e))return r;return-1}function W(t){return le.call(t)}function L(t,e,r,n,o){return t===e||(null==t||null==e||!ct(t)&&!lt(e)?t!==t&&e!==e:U(t,e,L,r,n,o))}function U(t,e,r,n,o,i){var a=Se(t),s=Se(e),c=gt,l=gt;a||(c=Me(t),c=c==bt?Pt:c),s||(l=Me(e),l=l==bt?Pt:l);var p=c==Pt&&!u(t),f=l==Pt&&!u(e),h=c==l;if(h&&!p)return i||(i=new x),a||xe(t)?Y(t,e,r,n,o,i):B(t,e,c,r,n,o,i);if(!(o&yt)){var d=p&&ce.call(t,"__wrapped__"),y=f&&ce.call(e,"__wrapped__");if(d||y){var v=d?t.value():t,b=y?e.value():e;return i||(i=new x),r(v,b,n,o,i)}}return!!h&&(i||(i=new x),G(t,e,r,n,o,i))}function $(t){if(!ct(t)||Z(t))return!1;var e=ut(t)||u(t)?pe:Vt;return e.test(et(t))}function z(t){return lt(t)&&st(t.length)&&!!Bt[le.call(t)]}function V(t){if(!tt(t))return ve(t);var e=[];for(var r in Object(t))ce.call(t,r)&&"constructor"!=r&&e.push(r);return e}function Y(t,e,r,o,i,a){var u=i&yt,s=t.length,c=e.length;if(s!=c&&!(u&&c>s))return!1;var l=a.get(t);if(l&&a.get(e))return l==e;var p=-1,f=!0,h=i&dt?new D:void 0;for(a.set(t,e),a.set(e,t);++p<s;){var d=t[p],y=e[p];if(o)var v=u?o(y,d,p,e,t,a):o(d,y,p,t,e,a);if(void 0!==v){if(v)continue;f=!1;break}if(h){if(!n(e,function(t,e){if(!h.has(e)&&(d===t||r(d,t,o,i,a)))return h.add(e)})){f=!1;break}}else if(d!==y&&!r(d,y,o,i,a)){f=!1;break}}return a.delete(t),a.delete(e),f}function B(t,e,r,n,o,i,a){switch(r){case Rt:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case Et:return!(t.byteLength!=e.byteLength||!n(new he(t),new he(e)));case mt:case _t:case Tt:return rt(+t,+e);case Ot:return t.name==e.name&&t.message==e.message;case At:case Mt:return t==e+"";case qt:var u=s;case Dt:var c=i&yt;if(u||(u=l),t.size!=e.size&&!c)return!1;var p=a.get(t);if(p)return p==e;i|=dt,a.set(t,e);var f=Y(u(t),u(e),n,o,i,a);return a.delete(t),f;case St:if(De)return De.call(t)==De.call(e)}return!1}function G(t,e,r,n,o,i){var a=o&yt,u=pt(t),s=u.length,c=pt(e),l=c.length;if(s!=l&&!a)return!1;for(var p=s;p--;){var f=u[p];if(!(a?f in e:ce.call(e,f)))return!1}var h=i.get(t);if(h&&i.get(e))return h==e;var d=!0;i.set(t,e),i.set(e,t);for(var y=a;++p<s;){f=u[p];var v=t[f],b=e[f];if(n)var g=a?n(b,v,f,e,t,i):n(v,b,f,t,e,i);if(!(void 0===g?v===b||r(v,b,n,o,i):g)){d=!1;break}y||(y="constructor"==f)}if(d&&!y){var m=t.constructor,_=e.constructor;m!=_&&"constructor"in t&&"constructor"in e&&!("function"==typeof m&&m instanceof m&&"function"==typeof _&&_ instanceof _)&&(d=!1)}return i.delete(t),i.delete(e),d}function K(t,e){var r=t.__data__;return X(e)?r["string"==typeof e?"string":"hash"]:r.map}function H(t,e){var r=a(t,e);return $(r)?r:void 0}function J(t,e){return e=null==e?vt:e,!!e&&("number"==typeof t||Yt.test(t))&&t>-1&&t%1==0&&t<e}function X(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}function Z(t){return!!ue&&ue in t}function tt(t){var e=t&&t.constructor,r="function"==typeof e&&e.prototype||ie;return t===r}function et(t){if(null!=t){try{return se.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function rt(t,e){return t===e||t!==t&&e!==e}function nt(t){return it(t)&&ce.call(t,"callee")&&(!de.call(t,"callee")||le.call(t)==bt)}function ot(t){return null!=t&&st(t.length)&&!ut(t)}function it(t){return lt(t)&&ot(t)}function at(t,e){return L(t,e)}function ut(t){var e=ct(t)?le.call(t):"";return e==wt||e==jt}function st(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=vt}function ct(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function lt(t){return!!t&&"object"==typeof t}function pt(t){return ot(t)?I(t):V(t)}var ft=200,ht="__lodash_hash_undefined__",dt=1,yt=2,vt=9007199254740991,bt="[object Arguments]",gt="[object Array]",mt="[object Boolean]",_t="[object Date]",Ot="[object Error]",wt="[object Function]",jt="[object GeneratorFunction]",qt="[object Map]",Tt="[object Number]",Pt="[object Object]",Ct="[object Promise]",At="[object RegExp]",Dt="[object Set]",Mt="[object String]",St="[object Symbol]",xt="[object WeakMap]",Et="[object ArrayBuffer]",Rt="[object DataView]",kt="[object Float32Array]",Qt="[object Float64Array]",Ft="[object Int8Array]",It="[object Int16Array]",Nt="[object Int32Array]",Wt="[object Uint8Array]",Lt="[object Uint8ClampedArray]",Ut="[object Uint16Array]",$t="[object Uint32Array]",zt=/[\\^$.*+?()[\]{}|]/g,Vt=/^\[object .+?Constructor\]$/,Yt=/^(?:0|[1-9]\d*)$/,Bt={};Bt[kt]=Bt[Qt]=Bt[Ft]=Bt[It]=Bt[Nt]=Bt[Wt]=Bt[Lt]=Bt[Ut]=Bt[$t]=!0,Bt[bt]=Bt[gt]=Bt[Et]=Bt[mt]=Bt[Rt]=Bt[_t]=Bt[Ot]=Bt[wt]=Bt[qt]=Bt[Tt]=Bt[Pt]=Bt[At]=Bt[Dt]=Bt[Mt]=Bt[xt]=!1;var Gt="object"==typeof t&&t&&t.Object===Object&&t,Kt="object"==typeof self&&self&&self.Object===Object&&self,Ht=Gt||Kt||Function("return this")(),Jt="object"==typeof r&&r&&!r.nodeType&&r,Xt=Jt&&"object"==typeof e&&e&&!e.nodeType&&e,Zt=Xt&&Xt.exports===Jt,te=Zt&&Gt.process,ee=function(){try{return te&&te.binding("util")}catch(t){}}(),re=ee&&ee.isTypedArray,ne=Array.prototype,oe=Function.prototype,ie=Object.prototype,ae=Ht["__core-js_shared__"],ue=function(){var t=/[^.]+$/.exec(ae&&ae.keys&&ae.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),se=oe.toString,ce=ie.hasOwnProperty,le=ie.toString,pe=RegExp("^"+se.call(ce).replace(zt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),fe=Ht.Symbol,he=Ht.Uint8Array,de=ie.propertyIsEnumerable,ye=ne.splice,ve=c(Object.keys,Object),be=H(Ht,"DataView"),ge=H(Ht,"Map"),me=H(Ht,"Promise"),_e=H(Ht,"Set"),Oe=H(Ht,"WeakMap"),we=H(Object,"create"),je=et(be),qe=et(ge),Te=et(me),Pe=et(_e),Ce=et(Oe),Ae=fe?fe.prototype:void 0,De=Ae?Ae.valueOf:void 0;p.prototype.clear=f,p.prototype.delete=h,p.prototype.get=d,p.prototype.has=y,p.prototype.set=v,b.prototype.clear=g,b.prototype.delete=m,b.prototype.get=_,b.prototype.has=O,b.prototype.set=w,j.prototype.clear=q,j.prototype.delete=T,j.prototype.get=P,j.prototype.has=C,j.prototype.set=A,D.prototype.add=D.prototype.push=M,D.prototype.has=S,x.prototype.clear=E,x.prototype.delete=R,x.prototype.get=k,x.prototype.has=Q,x.prototype.set=F;var Me=W;(be&&Me(new be(new ArrayBuffer(1)))!=Rt||ge&&Me(new ge)!=qt||me&&Me(me.resolve())!=Ct||_e&&Me(new _e)!=Dt||Oe&&Me(new Oe)!=xt)&&(Me=function(t){var e=le.call(t),r=e==Pt?t.constructor:void 0,n=r?et(r):void 0;if(n)switch(n){case je:return Rt;case qe:return qt;case Te:return Ct;case Pe:return Dt;case Ce:return xt}return e});var Se=Array.isArray,xe=re?i(re):z;e.exports=at}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],12:[function(t,e,r){"use strict";function n(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={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(e).map(function(t){return e[t]});if("0123456789"!==n.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 r,o,u=n(t),s=1;s<arguments.length;s++){r=Object(arguments[s]);for(var c in r)i.call(r,c)&&(u[c]=r[c]);if(Object.getOwnPropertySymbols){o=Object.getOwnPropertySymbols(r);for(var l=0;l<o.length;l++)a.call(r,o[l])&&(u[o[l]]=r[o[l]])}}return u}},{}],13:[function(t,e,r){"use strict";function n(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];if(0===e.length)return function(t){return t};if(1===e.length)return e[0];var n=e[e.length-1];return function(){for(var t=n.apply(void 0,arguments),r=e.length-2;r>=0;r--){var o=e[r];t=o(t)}return t}}r.__esModule=!0,r.default=n},{}]},{},[3]);

@@ -84,3 +84,3 @@ "use strict";

for (var _i = 0, _a = operation.variables; _i < _a.length; _i++) {
var variable = _a[_i].variable;
var _b = _a[_i], variable = _b.variable, type = _b.type;
if (!variable.name || !variable.name.value)

@@ -92,2 +92,6 @@ continue;

}
if (type.kind !== 'NonNullType') {
variables[variable.name.value] = null;
continue;
}
invariant(typeof props[variable.name.value] !== 'undefined', ("The operation '" + operation.name + "' wrapping '" + getDisplayName(WrappedComponent) + "' ") +

@@ -94,0 +98,0 @@ ("is expecting a variable: '" + variable.name.value + "' but it was not found in the props ") +

{
"name": "react-apollo",
"version": "0.5.1",
"version": "0.5.2",
"description": "React data container for Apollo Client",

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

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

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