Initial Sample.
This commit is contained in:
37
graphql-subscription/node_modules/hoist-non-react-statics/CHANGELOG.md
generated
vendored
Normal file
37
graphql-subscription/node_modules/hoist-non-react-statics/CHANGELOG.md
generated
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
# 3.3.2 (January 22, 2020)
|
||||
- Fix `React.memo` for v16.12+ (#93)
|
||||
|
||||
# 3.3.1 (November 14, 2019)
|
||||
- Fix for UMD bundle (#85)
|
||||
- Tooling changes (#83, #84, #87)
|
||||
|
||||
# 3.3.0 (January 23, 2019)
|
||||
- Prevent hoisting of React.memo statics (#73)
|
||||
|
||||
# 3.2.1 (December 3, 2018)
|
||||
- Fixed `defaultProps`, `displayName` and `propTypes` being hoisted from `React.forwardRef` to `React.forwardRef`. ([#71])
|
||||
|
||||
# 3.2.0 (November 26, 2018)
|
||||
- Added support for `getDerivedStateFromError`. ([#68])
|
||||
- Added support for React versions less than 0.14. ([#69])
|
||||
|
||||
# 3.1.0 (October 30, 2018)
|
||||
- Added support for `contextType`. ([#62])
|
||||
- Reduced bundle size. ([e89c7a6])
|
||||
- Removed TypeScript definitions. ([#61])
|
||||
|
||||
# 3.0.1 (July 28, 2018)
|
||||
- Fixed prop-types warnings. ([e0846fe])
|
||||
|
||||
# 3.0.0 (July 27, 2018)
|
||||
- Dropped support for React versions less than 0.14. ([#55])
|
||||
- Added support for `React.forwardRef` components. ([#55])
|
||||
|
||||
[#55]: https://github.com/mridgway/hoist-non-react-statics/pull/55
|
||||
[#61]: https://github.com/mridgway/hoist-non-react-statics/pull/61
|
||||
[#62]: https://github.com/mridgway/hoist-non-react-statics/pull/62
|
||||
[#68]: https://github.com/mridgway/hoist-non-react-statics/pull/68
|
||||
[#69]: https://github.com/mridgway/hoist-non-react-statics/pull/69
|
||||
[#71]: https://github.com/mridgway/hoist-non-react-statics/pull/71
|
||||
[e0846fe]: https://github.com/mridgway/hoist-non-react-statics/commit/e0846feefbad8b34d300de9966ffd607aacb81a3
|
||||
[e89c7a6]: https://github.com/mridgway/hoist-non-react-statics/commit/e89c7a6168edc19eeadb2d149e600b888e8b0446
|
||||
29
graphql-subscription/node_modules/hoist-non-react-statics/LICENSE.md
generated
vendored
Normal file
29
graphql-subscription/node_modules/hoist-non-react-statics/LICENSE.md
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
Software License Agreement (BSD License)
|
||||
========================================
|
||||
|
||||
Copyright (c) 2015, Yahoo! Inc. All rights reserved.
|
||||
----------------------------------------------------
|
||||
|
||||
Redistribution and use of this software in source and binary forms, with or
|
||||
without modification, are permitted provided that the following conditions are
|
||||
met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of Yahoo! Inc. nor the names of YUI's contributors may be
|
||||
used to endorse or promote products derived from this software without
|
||||
specific prior written permission of Yahoo! Inc.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
||||
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
55
graphql-subscription/node_modules/hoist-non-react-statics/README.md
generated
vendored
Normal file
55
graphql-subscription/node_modules/hoist-non-react-statics/README.md
generated
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
# hoist-non-react-statics
|
||||
|
||||
[](http://badge.fury.io/js/hoist-non-react-statics)
|
||||
[](https://travis-ci.org/mridgway/hoist-non-react-statics)
|
||||
[](https://coveralls.io/r/mridgway/hoist-non-react-statics?branch=master)
|
||||
[](https://david-dm.org/mridgway/hoist-non-react-statics)
|
||||
[](https://david-dm.org/mridgway/hoist-non-react-statics#info=devDependencies)
|
||||
|
||||
Copies non-react specific statics from a child component to a parent component.
|
||||
Similar to `Object.assign`, but with React static keywords blacklisted from
|
||||
being overridden.
|
||||
|
||||
```bash
|
||||
$ npm install --save hoist-non-react-statics
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
import hoistNonReactStatics from 'hoist-non-react-statics';
|
||||
|
||||
hoistNonReactStatics(targetComponent, sourceComponent);
|
||||
```
|
||||
|
||||
If you have specific statics that you don't want to be hoisted, you can also pass a third parameter to exclude them:
|
||||
|
||||
```js
|
||||
hoistNonReactStatics(targetComponent, sourceComponent, { myStatic: true, myOtherStatic: true });
|
||||
```
|
||||
|
||||
## What does this module do?
|
||||
|
||||
See this [explanation](https://facebook.github.io/react/docs/higher-order-components.html#static-methods-must-be-copied-over) from the React docs.
|
||||
|
||||
## Compatible React Versions
|
||||
|
||||
Please use latest 3.x. Versions prior to 3.x will not support ForwardRefs.
|
||||
|
||||
| hoist-non-react-statics Version | Compatible React Version |
|
||||
|--------------------------|-------------------------------|
|
||||
| 3.x | 0.13-16.x With ForwardRef Support |
|
||||
| 2.x | 0.13-16.x Without ForwardRef Support |
|
||||
| 1.x | 0.13-16.2 |
|
||||
|
||||
## Browser Support
|
||||
|
||||
This package uses `Object.defineProperty` which has a broken implementation in IE8. In order to use this package in IE8, you will need a polyfill that fixes this method.
|
||||
|
||||
## License
|
||||
This software is free to use under the Yahoo Inc. BSD license.
|
||||
See the [LICENSE file][] for license text and copyright information.
|
||||
|
||||
[LICENSE file]: https://github.com/mridgway/hoist-non-react-statics/blob/master/LICENSE.md
|
||||
|
||||
Third-party open source code used are listed in our [package.json file]( https://github.com/mridgway/hoist-non-react-statics/blob/master/package.json).
|
||||
103
graphql-subscription/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js
generated
vendored
Normal file
103
graphql-subscription/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js
generated
vendored
Normal file
@@ -0,0 +1,103 @@
|
||||
'use strict';
|
||||
|
||||
var reactIs = require('react-is');
|
||||
|
||||
/**
|
||||
* Copyright 2015, Yahoo! Inc.
|
||||
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
|
||||
*/
|
||||
var REACT_STATICS = {
|
||||
childContextTypes: true,
|
||||
contextType: true,
|
||||
contextTypes: true,
|
||||
defaultProps: true,
|
||||
displayName: true,
|
||||
getDefaultProps: true,
|
||||
getDerivedStateFromError: true,
|
||||
getDerivedStateFromProps: true,
|
||||
mixins: true,
|
||||
propTypes: true,
|
||||
type: true
|
||||
};
|
||||
var KNOWN_STATICS = {
|
||||
name: true,
|
||||
length: true,
|
||||
prototype: true,
|
||||
caller: true,
|
||||
callee: true,
|
||||
arguments: true,
|
||||
arity: true
|
||||
};
|
||||
var FORWARD_REF_STATICS = {
|
||||
'$$typeof': true,
|
||||
render: true,
|
||||
defaultProps: true,
|
||||
displayName: true,
|
||||
propTypes: true
|
||||
};
|
||||
var MEMO_STATICS = {
|
||||
'$$typeof': true,
|
||||
compare: true,
|
||||
defaultProps: true,
|
||||
displayName: true,
|
||||
propTypes: true,
|
||||
type: true
|
||||
};
|
||||
var TYPE_STATICS = {};
|
||||
TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
|
||||
TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
|
||||
|
||||
function getStatics(component) {
|
||||
// React v16.11 and below
|
||||
if (reactIs.isMemo(component)) {
|
||||
return MEMO_STATICS;
|
||||
} // React v16.12 and above
|
||||
|
||||
|
||||
return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;
|
||||
}
|
||||
|
||||
var defineProperty = Object.defineProperty;
|
||||
var getOwnPropertyNames = Object.getOwnPropertyNames;
|
||||
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
||||
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
||||
var getPrototypeOf = Object.getPrototypeOf;
|
||||
var objectPrototype = Object.prototype;
|
||||
function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
|
||||
if (typeof sourceComponent !== 'string') {
|
||||
// don't hoist over string (html) components
|
||||
if (objectPrototype) {
|
||||
var inheritedComponent = getPrototypeOf(sourceComponent);
|
||||
|
||||
if (inheritedComponent && inheritedComponent !== objectPrototype) {
|
||||
hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
|
||||
}
|
||||
}
|
||||
|
||||
var keys = getOwnPropertyNames(sourceComponent);
|
||||
|
||||
if (getOwnPropertySymbols) {
|
||||
keys = keys.concat(getOwnPropertySymbols(sourceComponent));
|
||||
}
|
||||
|
||||
var targetStatics = getStatics(targetComponent);
|
||||
var sourceStatics = getStatics(sourceComponent);
|
||||
|
||||
for (var i = 0; i < keys.length; ++i) {
|
||||
var key = keys[i];
|
||||
|
||||
if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
|
||||
var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
|
||||
|
||||
try {
|
||||
// Avoid failures from read-only properties
|
||||
defineProperty(targetComponent, key, descriptor);
|
||||
} catch (e) {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return targetComponent;
|
||||
}
|
||||
|
||||
module.exports = hoistNonReactStatics;
|
||||
449
graphql-subscription/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.js
generated
vendored
Normal file
449
graphql-subscription/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.js
generated
vendored
Normal file
@@ -0,0 +1,449 @@
|
||||
(function (global, factory) {
|
||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
||||
typeof define === 'function' && define.amd ? define(factory) :
|
||||
(global = global || self, global.hoistNonReactStatics = factory());
|
||||
}(this, (function () { 'use strict';
|
||||
|
||||
function unwrapExports (x) {
|
||||
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
||||
}
|
||||
|
||||
function createCommonjsModule(fn, module) {
|
||||
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
||||
}
|
||||
|
||||
var reactIs_production_min = createCommonjsModule(function (module, exports) {
|
||||
Object.defineProperty(exports,"__esModule",{value:!0});
|
||||
var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?Symbol.for("react.suspense_list"):
|
||||
60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.fundamental"):60117,w=b?Symbol.for("react.responder"):60118,x=b?Symbol.for("react.scope"):60119;function y(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function z(a){return y(a)===m}
|
||||
exports.typeOf=y;exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;exports.Fragment=e;exports.Lazy=t;exports.Memo=r;exports.Portal=d;exports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;
|
||||
exports.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===v||a.$$typeof===w||a.$$typeof===x)};exports.isAsyncMode=function(a){return z(a)||y(a)===l};exports.isConcurrentMode=z;exports.isContextConsumer=function(a){return y(a)===k};exports.isContextProvider=function(a){return y(a)===h};
|
||||
exports.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return y(a)===n};exports.isFragment=function(a){return y(a)===e};exports.isLazy=function(a){return y(a)===t};exports.isMemo=function(a){return y(a)===r};exports.isPortal=function(a){return y(a)===d};exports.isProfiler=function(a){return y(a)===g};exports.isStrictMode=function(a){return y(a)===f};exports.isSuspense=function(a){return y(a)===p};
|
||||
});
|
||||
|
||||
unwrapExports(reactIs_production_min);
|
||||
var reactIs_production_min_1 = reactIs_production_min.typeOf;
|
||||
var reactIs_production_min_2 = reactIs_production_min.AsyncMode;
|
||||
var reactIs_production_min_3 = reactIs_production_min.ConcurrentMode;
|
||||
var reactIs_production_min_4 = reactIs_production_min.ContextConsumer;
|
||||
var reactIs_production_min_5 = reactIs_production_min.ContextProvider;
|
||||
var reactIs_production_min_6 = reactIs_production_min.Element;
|
||||
var reactIs_production_min_7 = reactIs_production_min.ForwardRef;
|
||||
var reactIs_production_min_8 = reactIs_production_min.Fragment;
|
||||
var reactIs_production_min_9 = reactIs_production_min.Lazy;
|
||||
var reactIs_production_min_10 = reactIs_production_min.Memo;
|
||||
var reactIs_production_min_11 = reactIs_production_min.Portal;
|
||||
var reactIs_production_min_12 = reactIs_production_min.Profiler;
|
||||
var reactIs_production_min_13 = reactIs_production_min.StrictMode;
|
||||
var reactIs_production_min_14 = reactIs_production_min.Suspense;
|
||||
var reactIs_production_min_15 = reactIs_production_min.isValidElementType;
|
||||
var reactIs_production_min_16 = reactIs_production_min.isAsyncMode;
|
||||
var reactIs_production_min_17 = reactIs_production_min.isConcurrentMode;
|
||||
var reactIs_production_min_18 = reactIs_production_min.isContextConsumer;
|
||||
var reactIs_production_min_19 = reactIs_production_min.isContextProvider;
|
||||
var reactIs_production_min_20 = reactIs_production_min.isElement;
|
||||
var reactIs_production_min_21 = reactIs_production_min.isForwardRef;
|
||||
var reactIs_production_min_22 = reactIs_production_min.isFragment;
|
||||
var reactIs_production_min_23 = reactIs_production_min.isLazy;
|
||||
var reactIs_production_min_24 = reactIs_production_min.isMemo;
|
||||
var reactIs_production_min_25 = reactIs_production_min.isPortal;
|
||||
var reactIs_production_min_26 = reactIs_production_min.isProfiler;
|
||||
var reactIs_production_min_27 = reactIs_production_min.isStrictMode;
|
||||
var reactIs_production_min_28 = reactIs_production_min.isSuspense;
|
||||
|
||||
var reactIs_development = createCommonjsModule(function (module, exports) {
|
||||
|
||||
|
||||
|
||||
if (process.env.NODE_ENV !== "production") {
|
||||
(function() {
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
||||
// nor polyfill, then a plain number is used for performance.
|
||||
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
||||
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
||||
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
||||
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
||||
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
||||
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
||||
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
||||
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
|
||||
// (unstable) APIs that have been removed. Can we remove the symbols?
|
||||
|
||||
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
||||
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
||||
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
||||
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
||||
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
||||
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
||||
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
||||
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
||||
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
||||
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
||||
|
||||
function isValidElementType(type) {
|
||||
return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
||||
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Forked from fbjs/warning:
|
||||
* https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js
|
||||
*
|
||||
* Only change is we use console.warn instead of console.error,
|
||||
* and do nothing when 'console' is not supported.
|
||||
* This really simplifies the code.
|
||||
* ---
|
||||
* Similar to invariant but only logs a warning if the condition is not met.
|
||||
* This can be used to log issues in development environments in critical
|
||||
* paths. Removing the logging code for production environments will keep the
|
||||
* same logic and follow the same code paths.
|
||||
*/
|
||||
var lowPriorityWarningWithoutStack = function () {};
|
||||
|
||||
{
|
||||
var printWarning = function (format) {
|
||||
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
||||
args[_key - 1] = arguments[_key];
|
||||
}
|
||||
|
||||
var argIndex = 0;
|
||||
var message = 'Warning: ' + format.replace(/%s/g, function () {
|
||||
return args[argIndex++];
|
||||
});
|
||||
|
||||
if (typeof console !== 'undefined') {
|
||||
console.warn(message);
|
||||
}
|
||||
|
||||
try {
|
||||
// --- Welcome to debugging React ---
|
||||
// This error was thrown as a convenience so that you can use this stack
|
||||
// to find the callsite that caused this warning to fire.
|
||||
throw new Error(message);
|
||||
} catch (x) {}
|
||||
};
|
||||
|
||||
lowPriorityWarningWithoutStack = function (condition, format) {
|
||||
if (format === undefined) {
|
||||
throw new Error('`lowPriorityWarningWithoutStack(condition, format, ...args)` requires a warning ' + 'message argument');
|
||||
}
|
||||
|
||||
if (!condition) {
|
||||
for (var _len2 = arguments.length, args = new Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
|
||||
args[_key2 - 2] = arguments[_key2];
|
||||
}
|
||||
|
||||
printWarning.apply(void 0, [format].concat(args));
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
var lowPriorityWarningWithoutStack$1 = lowPriorityWarningWithoutStack;
|
||||
|
||||
function typeOf(object) {
|
||||
if (typeof object === 'object' && object !== null) {
|
||||
var $$typeof = object.$$typeof;
|
||||
|
||||
switch ($$typeof) {
|
||||
case REACT_ELEMENT_TYPE:
|
||||
var type = object.type;
|
||||
|
||||
switch (type) {
|
||||
case REACT_ASYNC_MODE_TYPE:
|
||||
case REACT_CONCURRENT_MODE_TYPE:
|
||||
case REACT_FRAGMENT_TYPE:
|
||||
case REACT_PROFILER_TYPE:
|
||||
case REACT_STRICT_MODE_TYPE:
|
||||
case REACT_SUSPENSE_TYPE:
|
||||
return type;
|
||||
|
||||
default:
|
||||
var $$typeofType = type && type.$$typeof;
|
||||
|
||||
switch ($$typeofType) {
|
||||
case REACT_CONTEXT_TYPE:
|
||||
case REACT_FORWARD_REF_TYPE:
|
||||
case REACT_LAZY_TYPE:
|
||||
case REACT_MEMO_TYPE:
|
||||
case REACT_PROVIDER_TYPE:
|
||||
return $$typeofType;
|
||||
|
||||
default:
|
||||
return $$typeof;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
case REACT_PORTAL_TYPE:
|
||||
return $$typeof;
|
||||
}
|
||||
}
|
||||
|
||||
return undefined;
|
||||
} // AsyncMode is deprecated along with isAsyncMode
|
||||
|
||||
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
||||
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
||||
var ContextConsumer = REACT_CONTEXT_TYPE;
|
||||
var ContextProvider = REACT_PROVIDER_TYPE;
|
||||
var Element = REACT_ELEMENT_TYPE;
|
||||
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
||||
var Fragment = REACT_FRAGMENT_TYPE;
|
||||
var Lazy = REACT_LAZY_TYPE;
|
||||
var Memo = REACT_MEMO_TYPE;
|
||||
var Portal = REACT_PORTAL_TYPE;
|
||||
var Profiler = REACT_PROFILER_TYPE;
|
||||
var StrictMode = REACT_STRICT_MODE_TYPE;
|
||||
var Suspense = REACT_SUSPENSE_TYPE;
|
||||
var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
|
||||
|
||||
function isAsyncMode(object) {
|
||||
{
|
||||
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
||||
hasWarnedAboutDeprecatedIsAsyncMode = true;
|
||||
lowPriorityWarningWithoutStack$1(false, 'The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
|
||||
}
|
||||
}
|
||||
|
||||
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
||||
}
|
||||
function isConcurrentMode(object) {
|
||||
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
||||
}
|
||||
function isContextConsumer(object) {
|
||||
return typeOf(object) === REACT_CONTEXT_TYPE;
|
||||
}
|
||||
function isContextProvider(object) {
|
||||
return typeOf(object) === REACT_PROVIDER_TYPE;
|
||||
}
|
||||
function isElement(object) {
|
||||
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
||||
}
|
||||
function isForwardRef(object) {
|
||||
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
||||
}
|
||||
function isFragment(object) {
|
||||
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
||||
}
|
||||
function isLazy(object) {
|
||||
return typeOf(object) === REACT_LAZY_TYPE;
|
||||
}
|
||||
function isMemo(object) {
|
||||
return typeOf(object) === REACT_MEMO_TYPE;
|
||||
}
|
||||
function isPortal(object) {
|
||||
return typeOf(object) === REACT_PORTAL_TYPE;
|
||||
}
|
||||
function isProfiler(object) {
|
||||
return typeOf(object) === REACT_PROFILER_TYPE;
|
||||
}
|
||||
function isStrictMode(object) {
|
||||
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
||||
}
|
||||
function isSuspense(object) {
|
||||
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
||||
}
|
||||
|
||||
exports.typeOf = typeOf;
|
||||
exports.AsyncMode = AsyncMode;
|
||||
exports.ConcurrentMode = ConcurrentMode;
|
||||
exports.ContextConsumer = ContextConsumer;
|
||||
exports.ContextProvider = ContextProvider;
|
||||
exports.Element = Element;
|
||||
exports.ForwardRef = ForwardRef;
|
||||
exports.Fragment = Fragment;
|
||||
exports.Lazy = Lazy;
|
||||
exports.Memo = Memo;
|
||||
exports.Portal = Portal;
|
||||
exports.Profiler = Profiler;
|
||||
exports.StrictMode = StrictMode;
|
||||
exports.Suspense = Suspense;
|
||||
exports.isValidElementType = isValidElementType;
|
||||
exports.isAsyncMode = isAsyncMode;
|
||||
exports.isConcurrentMode = isConcurrentMode;
|
||||
exports.isContextConsumer = isContextConsumer;
|
||||
exports.isContextProvider = isContextProvider;
|
||||
exports.isElement = isElement;
|
||||
exports.isForwardRef = isForwardRef;
|
||||
exports.isFragment = isFragment;
|
||||
exports.isLazy = isLazy;
|
||||
exports.isMemo = isMemo;
|
||||
exports.isPortal = isPortal;
|
||||
exports.isProfiler = isProfiler;
|
||||
exports.isStrictMode = isStrictMode;
|
||||
exports.isSuspense = isSuspense;
|
||||
})();
|
||||
}
|
||||
});
|
||||
|
||||
unwrapExports(reactIs_development);
|
||||
var reactIs_development_1 = reactIs_development.typeOf;
|
||||
var reactIs_development_2 = reactIs_development.AsyncMode;
|
||||
var reactIs_development_3 = reactIs_development.ConcurrentMode;
|
||||
var reactIs_development_4 = reactIs_development.ContextConsumer;
|
||||
var reactIs_development_5 = reactIs_development.ContextProvider;
|
||||
var reactIs_development_6 = reactIs_development.Element;
|
||||
var reactIs_development_7 = reactIs_development.ForwardRef;
|
||||
var reactIs_development_8 = reactIs_development.Fragment;
|
||||
var reactIs_development_9 = reactIs_development.Lazy;
|
||||
var reactIs_development_10 = reactIs_development.Memo;
|
||||
var reactIs_development_11 = reactIs_development.Portal;
|
||||
var reactIs_development_12 = reactIs_development.Profiler;
|
||||
var reactIs_development_13 = reactIs_development.StrictMode;
|
||||
var reactIs_development_14 = reactIs_development.Suspense;
|
||||
var reactIs_development_15 = reactIs_development.isValidElementType;
|
||||
var reactIs_development_16 = reactIs_development.isAsyncMode;
|
||||
var reactIs_development_17 = reactIs_development.isConcurrentMode;
|
||||
var reactIs_development_18 = reactIs_development.isContextConsumer;
|
||||
var reactIs_development_19 = reactIs_development.isContextProvider;
|
||||
var reactIs_development_20 = reactIs_development.isElement;
|
||||
var reactIs_development_21 = reactIs_development.isForwardRef;
|
||||
var reactIs_development_22 = reactIs_development.isFragment;
|
||||
var reactIs_development_23 = reactIs_development.isLazy;
|
||||
var reactIs_development_24 = reactIs_development.isMemo;
|
||||
var reactIs_development_25 = reactIs_development.isPortal;
|
||||
var reactIs_development_26 = reactIs_development.isProfiler;
|
||||
var reactIs_development_27 = reactIs_development.isStrictMode;
|
||||
var reactIs_development_28 = reactIs_development.isSuspense;
|
||||
|
||||
var reactIs = createCommonjsModule(function (module) {
|
||||
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
module.exports = reactIs_production_min;
|
||||
} else {
|
||||
module.exports = reactIs_development;
|
||||
}
|
||||
});
|
||||
var reactIs_1 = reactIs.typeOf;
|
||||
var reactIs_2 = reactIs.AsyncMode;
|
||||
var reactIs_3 = reactIs.ConcurrentMode;
|
||||
var reactIs_4 = reactIs.ContextConsumer;
|
||||
var reactIs_5 = reactIs.ContextProvider;
|
||||
var reactIs_6 = reactIs.Element;
|
||||
var reactIs_7 = reactIs.ForwardRef;
|
||||
var reactIs_8 = reactIs.Fragment;
|
||||
var reactIs_9 = reactIs.Lazy;
|
||||
var reactIs_10 = reactIs.Memo;
|
||||
var reactIs_11 = reactIs.Portal;
|
||||
var reactIs_12 = reactIs.Profiler;
|
||||
var reactIs_13 = reactIs.StrictMode;
|
||||
var reactIs_14 = reactIs.Suspense;
|
||||
var reactIs_15 = reactIs.isValidElementType;
|
||||
var reactIs_16 = reactIs.isAsyncMode;
|
||||
var reactIs_17 = reactIs.isConcurrentMode;
|
||||
var reactIs_18 = reactIs.isContextConsumer;
|
||||
var reactIs_19 = reactIs.isContextProvider;
|
||||
var reactIs_20 = reactIs.isElement;
|
||||
var reactIs_21 = reactIs.isForwardRef;
|
||||
var reactIs_22 = reactIs.isFragment;
|
||||
var reactIs_23 = reactIs.isLazy;
|
||||
var reactIs_24 = reactIs.isMemo;
|
||||
var reactIs_25 = reactIs.isPortal;
|
||||
var reactIs_26 = reactIs.isProfiler;
|
||||
var reactIs_27 = reactIs.isStrictMode;
|
||||
var reactIs_28 = reactIs.isSuspense;
|
||||
|
||||
/**
|
||||
* Copyright 2015, Yahoo! Inc.
|
||||
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
|
||||
*/
|
||||
var REACT_STATICS = {
|
||||
childContextTypes: true,
|
||||
contextType: true,
|
||||
contextTypes: true,
|
||||
defaultProps: true,
|
||||
displayName: true,
|
||||
getDefaultProps: true,
|
||||
getDerivedStateFromError: true,
|
||||
getDerivedStateFromProps: true,
|
||||
mixins: true,
|
||||
propTypes: true,
|
||||
type: true
|
||||
};
|
||||
var KNOWN_STATICS = {
|
||||
name: true,
|
||||
length: true,
|
||||
prototype: true,
|
||||
caller: true,
|
||||
callee: true,
|
||||
arguments: true,
|
||||
arity: true
|
||||
};
|
||||
var FORWARD_REF_STATICS = {
|
||||
'$$typeof': true,
|
||||
render: true,
|
||||
defaultProps: true,
|
||||
displayName: true,
|
||||
propTypes: true
|
||||
};
|
||||
var MEMO_STATICS = {
|
||||
'$$typeof': true,
|
||||
compare: true,
|
||||
defaultProps: true,
|
||||
displayName: true,
|
||||
propTypes: true,
|
||||
type: true
|
||||
};
|
||||
var TYPE_STATICS = {};
|
||||
TYPE_STATICS[reactIs_7] = FORWARD_REF_STATICS;
|
||||
TYPE_STATICS[reactIs_10] = MEMO_STATICS;
|
||||
|
||||
function getStatics(component) {
|
||||
// React v16.11 and below
|
||||
if (reactIs_24(component)) {
|
||||
return MEMO_STATICS;
|
||||
} // React v16.12 and above
|
||||
|
||||
|
||||
return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;
|
||||
}
|
||||
|
||||
var defineProperty = Object.defineProperty;
|
||||
var getOwnPropertyNames = Object.getOwnPropertyNames;
|
||||
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
||||
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
||||
var getPrototypeOf = Object.getPrototypeOf;
|
||||
var objectPrototype = Object.prototype;
|
||||
function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
|
||||
if (typeof sourceComponent !== 'string') {
|
||||
// don't hoist over string (html) components
|
||||
if (objectPrototype) {
|
||||
var inheritedComponent = getPrototypeOf(sourceComponent);
|
||||
|
||||
if (inheritedComponent && inheritedComponent !== objectPrototype) {
|
||||
hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
|
||||
}
|
||||
}
|
||||
|
||||
var keys = getOwnPropertyNames(sourceComponent);
|
||||
|
||||
if (getOwnPropertySymbols) {
|
||||
keys = keys.concat(getOwnPropertySymbols(sourceComponent));
|
||||
}
|
||||
|
||||
var targetStatics = getStatics(targetComponent);
|
||||
var sourceStatics = getStatics(sourceComponent);
|
||||
|
||||
for (var i = 0; i < keys.length; ++i) {
|
||||
var key = keys[i];
|
||||
|
||||
if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
|
||||
var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
|
||||
|
||||
try {
|
||||
// Avoid failures from read-only properties
|
||||
defineProperty(targetComponent, key, descriptor);
|
||||
} catch (e) {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return targetComponent;
|
||||
}
|
||||
|
||||
return hoistNonReactStatics;
|
||||
|
||||
})));
|
||||
1
graphql-subscription/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.min.js
generated
vendored
Normal file
1
graphql-subscription/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.min.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
55
graphql-subscription/node_modules/hoist-non-react-statics/package.json
generated
vendored
Normal file
55
graphql-subscription/node_modules/hoist-non-react-statics/package.json
generated
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
{
|
||||
"name": "hoist-non-react-statics",
|
||||
"version": "3.3.2",
|
||||
"description": "Copies non-react specific statics from a child component to a parent component",
|
||||
"main": "dist/hoist-non-react-statics.cjs.js",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/mridgway/hoist-non-react-statics.git"
|
||||
},
|
||||
"files": [
|
||||
"src",
|
||||
"dist",
|
||||
"index.d.ts"
|
||||
],
|
||||
"scripts": {
|
||||
"lint": "eslint src",
|
||||
"build": "rimraf dist && rollup -c",
|
||||
"test": "nyc mocha tests/unit/ --recursive --reporter spec --require=@babel/register",
|
||||
"coverage": "nyc report --reporter=text-lcov | coveralls",
|
||||
"prepublish": "npm test"
|
||||
},
|
||||
"author": "Michael Ridgway <mcridgway@gmail.com>",
|
||||
"license": "BSD-3-Clause",
|
||||
"dependencies": {
|
||||
"react-is": "^16.7.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.5.0",
|
||||
"@babel/plugin-proposal-class-properties": "^7.5.0",
|
||||
"@babel/preset-env": "^7.5.0",
|
||||
"@babel/preset-react": "^7.0.0",
|
||||
"@babel/register": "^7.4.4",
|
||||
"chai": "^4.2.0",
|
||||
"coveralls": "^2.11.1",
|
||||
"create-react-class": "^15.5.3",
|
||||
"eslint": "^4.13.1",
|
||||
"mocha": "^6.1.4",
|
||||
"nyc": "^14.1.1",
|
||||
"pre-commit": "^1.0.7",
|
||||
"prop-types": "^15.6.2",
|
||||
"react": "^16.7.0",
|
||||
"rimraf": "^2.6.2",
|
||||
"rollup": "^1.16.6",
|
||||
"rollup-plugin-babel": "^4.3.3",
|
||||
"rollup-plugin-commonjs": "^10.0.1",
|
||||
"rollup-plugin-node-resolve": "^5.2.0",
|
||||
"rollup-plugin-terser": "^5.1.1"
|
||||
},
|
||||
"publishConfig": {
|
||||
"registry": "https://registry.npmjs.org/"
|
||||
},
|
||||
"keywords": [
|
||||
"react"
|
||||
]
|
||||
}
|
||||
104
graphql-subscription/node_modules/hoist-non-react-statics/src/index.js
generated
vendored
Normal file
104
graphql-subscription/node_modules/hoist-non-react-statics/src/index.js
generated
vendored
Normal file
@@ -0,0 +1,104 @@
|
||||
/**
|
||||
* Copyright 2015, Yahoo! Inc.
|
||||
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
|
||||
*/
|
||||
import { ForwardRef, Memo, isMemo } from 'react-is';
|
||||
|
||||
const REACT_STATICS = {
|
||||
childContextTypes: true,
|
||||
contextType: true,
|
||||
contextTypes: true,
|
||||
defaultProps: true,
|
||||
displayName: true,
|
||||
getDefaultProps: true,
|
||||
getDerivedStateFromError: true,
|
||||
getDerivedStateFromProps: true,
|
||||
mixins: true,
|
||||
propTypes: true,
|
||||
type: true
|
||||
};
|
||||
|
||||
const KNOWN_STATICS = {
|
||||
name: true,
|
||||
length: true,
|
||||
prototype: true,
|
||||
caller: true,
|
||||
callee: true,
|
||||
arguments: true,
|
||||
arity: true
|
||||
};
|
||||
|
||||
const FORWARD_REF_STATICS = {
|
||||
'$$typeof': true,
|
||||
render: true,
|
||||
defaultProps: true,
|
||||
displayName: true,
|
||||
propTypes: true
|
||||
};
|
||||
|
||||
const MEMO_STATICS = {
|
||||
'$$typeof': true,
|
||||
compare: true,
|
||||
defaultProps: true,
|
||||
displayName: true,
|
||||
propTypes: true,
|
||||
type: true,
|
||||
}
|
||||
|
||||
const TYPE_STATICS = {};
|
||||
TYPE_STATICS[ForwardRef] = FORWARD_REF_STATICS;
|
||||
TYPE_STATICS[Memo] = MEMO_STATICS;
|
||||
|
||||
function getStatics(component) {
|
||||
// React v16.11 and below
|
||||
if (isMemo(component)) {
|
||||
return MEMO_STATICS;
|
||||
}
|
||||
|
||||
// React v16.12 and above
|
||||
return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;
|
||||
}
|
||||
|
||||
const defineProperty = Object.defineProperty;
|
||||
const getOwnPropertyNames = Object.getOwnPropertyNames;
|
||||
const getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
||||
const getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
||||
const getPrototypeOf = Object.getPrototypeOf;
|
||||
const objectPrototype = Object.prototype;
|
||||
|
||||
export default function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
|
||||
if (typeof sourceComponent !== 'string') { // don't hoist over string (html) components
|
||||
|
||||
if (objectPrototype) {
|
||||
const inheritedComponent = getPrototypeOf(sourceComponent);
|
||||
if (inheritedComponent && inheritedComponent !== objectPrototype) {
|
||||
hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
|
||||
}
|
||||
}
|
||||
|
||||
let keys = getOwnPropertyNames(sourceComponent);
|
||||
|
||||
if (getOwnPropertySymbols) {
|
||||
keys = keys.concat(getOwnPropertySymbols(sourceComponent));
|
||||
}
|
||||
|
||||
const targetStatics = getStatics(targetComponent);
|
||||
const sourceStatics = getStatics(sourceComponent);
|
||||
|
||||
for (let i = 0; i < keys.length; ++i) {
|
||||
const key = keys[i];
|
||||
if (!KNOWN_STATICS[key] &&
|
||||
!(blacklist && blacklist[key]) &&
|
||||
!(sourceStatics && sourceStatics[key]) &&
|
||||
!(targetStatics && targetStatics[key])
|
||||
) {
|
||||
const descriptor = getOwnPropertyDescriptor(sourceComponent, key);
|
||||
try { // Avoid failures from read-only properties
|
||||
defineProperty(targetComponent, key, descriptor);
|
||||
} catch (e) {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return targetComponent;
|
||||
};
|
||||
Reference in New Issue
Block a user