Comparing version 0.0.0-a8988e4-1d1a717 to 0.0.0-c5b7d26c7
@@ -1,2 +0,2 @@ | ||
/** @license React v16.6.1 | ||
/** @license React v0.0.0-c5b7d26c7 | ||
* react.development.js | ||
@@ -23,3 +23,3 @@ * | ||
var ReactVersion = '0.0.0-a8988e4-1d1a717'; | ||
var ReactVersion = '16.6.1-canary-c5b7d26c7'; | ||
@@ -1372,3 +1372,3 @@ // The Symbol used to tag the ReactElement-like types. If there is no native Symbol | ||
function lazy(ctor) { | ||
return { | ||
var lazyType = { | ||
$$typeof: REACT_LAZY_TYPE, | ||
@@ -1380,2 +1380,40 @@ _ctor: ctor, | ||
}; | ||
{ | ||
// In production, this would just set it on the object. | ||
var defaultProps = void 0; | ||
var propTypes = void 0; | ||
Object.defineProperties(lazyType, { | ||
defaultProps: { | ||
configurable: true, | ||
get: function () { | ||
return defaultProps; | ||
}, | ||
set: function (newDefaultProps) { | ||
warning$1(false, 'React.lazy(...): It is not supported to assign `defaultProps` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.'); | ||
defaultProps = newDefaultProps; | ||
// Match production behavior more closely: | ||
Object.defineProperty(lazyType, 'defaultProps', { | ||
enumerable: true | ||
}); | ||
} | ||
}, | ||
propTypes: { | ||
configurable: true, | ||
get: function () { | ||
return propTypes; | ||
}, | ||
set: function (newPropTypes) { | ||
warning$1(false, 'React.lazy(...): It is not supported to assign `propTypes` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.'); | ||
propTypes = newPropTypes; | ||
// Match production behavior more closely: | ||
Object.defineProperty(lazyType, 'propTypes', { | ||
enumerable: true | ||
}); | ||
} | ||
} | ||
}); | ||
} | ||
return lazyType; | ||
} | ||
@@ -1469,7 +1507,2 @@ | ||
function useMutationEffect(create, inputs) { | ||
var dispatcher = resolveDispatcher(); | ||
return dispatcher.useMutationEffect(create, inputs); | ||
} | ||
function useLayoutEffect(create, inputs) { | ||
@@ -1637,12 +1670,13 @@ var dispatcher = resolveDispatcher(); | ||
var type = element.type; | ||
var name = void 0, | ||
propTypes = void 0; | ||
if (type === null || type === undefined || typeof type === 'string') { | ||
return; | ||
} | ||
var name = getComponentName(type); | ||
var propTypes = void 0; | ||
if (typeof type === 'function') { | ||
// Class or function component | ||
name = type.displayName || type.name; | ||
propTypes = type.propTypes; | ||
} else if (typeof type === 'object' && type !== null && type.$$typeof === REACT_FORWARD_REF_TYPE) { | ||
// ForwardRef | ||
var functionName = type.render.displayName || type.render.name || ''; | ||
name = type.displayName || (functionName !== '' ? 'ForwardRef(' + functionName + ')' : 'ForwardRef'); | ||
} else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || | ||
// Note: Memo only checks outer props here. | ||
// Inner props are checked in the reconciler. | ||
type.$$typeof === REACT_MEMO_TYPE)) { | ||
propTypes = type.propTypes; | ||
@@ -1807,11 +1841,18 @@ } else { | ||
unstable_ConcurrentMode: REACT_CONCURRENT_MODE_TYPE, | ||
unstable_Profiler: REACT_PROFILER_TYPE, | ||
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: ReactSharedInternals | ||
}; | ||
// Note: some APIs are added with feature flags. | ||
// Make sure that stable builds for open source | ||
// don't modify the React object to avoid deopts. | ||
// Also let's not expose their names in stable builds. | ||
if (enableStableConcurrentModeAPIs) { | ||
React.ConcurrentMode = REACT_CONCURRENT_MODE_TYPE; | ||
React.Profiler = REACT_PROFILER_TYPE; | ||
} else { | ||
React.unstable_ConcurrentMode = REACT_CONCURRENT_MODE_TYPE; | ||
React.unstable_Profiler = REACT_PROFILER_TYPE; | ||
React.unstable_ConcurrentMode = undefined; | ||
React.unstable_Profiler = undefined; | ||
} | ||
@@ -1826,3 +1867,2 @@ | ||
React.useMemo = useMemo; | ||
React.useMutationEffect = useMutationEffect; | ||
React.useReducer = useReducer; | ||
@@ -1829,0 +1869,0 @@ React.useRef = useRef; |
@@ -1,2 +0,2 @@ | ||
/** @license React v16.6.1 | ||
/** @license React v0.0.0-c5b7d26c7 | ||
* react.production.min.js | ||
@@ -23,3 +23,3 @@ * | ||
_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null};a.Provider={$$typeof:v,_context:a};return a.Consumer=a},forwardRef:function(a){return{$$typeof:y,render:a}},lazy:function(a){return{$$typeof:B,_ctor:a,_status:-1,_result:null}},memo:function(a,b){return{$$typeof:A,type:a,compare:void 0===b?null:b}},Fragment:r,StrictMode:t,Suspense:z,createElement:N,cloneElement:function(a,b,e){null===a||void 0===a?D("267",a):void 0;var c=void 0,d=k({},a.props),g=a.key,h=a.ref,f=a._owner; | ||
if(null!=b){void 0!==b.ref&&(h=b.ref,f=K.current);void 0!==b.key&&(g=""+b.key);var l=void 0;a.type&&a.type.defaultProps&&(l=a.type.defaultProps);for(c in b)L.call(b,c)&&!M.hasOwnProperty(c)&&(d[c]=void 0===b[c]&&void 0!==l?l[c]:b[c])}c=arguments.length-2;if(1===c)d.children=e;else if(1<c){l=Array(c);for(var m=0;m<c;m++)l[m]=arguments[m+2];d.children=l}return{$$typeof:p,type:a.type,key:g,ref:h,props:d,_owner:f}},createFactory:function(a){var b=N.bind(null,a);b.type=a;return b},isValidElement:O,version:"0.0.0-a8988e4-1d1a717", | ||
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:K,assign:k}};X.unstable_ConcurrentMode=x;X.unstable_Profiler=u;var Y={default:X},Z=Y&&X||Y;module.exports=Z.default||Z; | ||
if(null!=b){void 0!==b.ref&&(h=b.ref,f=K.current);void 0!==b.key&&(g=""+b.key);var l=void 0;a.type&&a.type.defaultProps&&(l=a.type.defaultProps);for(c in b)L.call(b,c)&&!M.hasOwnProperty(c)&&(d[c]=void 0===b[c]&&void 0!==l?l[c]:b[c])}c=arguments.length-2;if(1===c)d.children=e;else if(1<c){l=Array(c);for(var m=0;m<c;m++)l[m]=arguments[m+2];d.children=l}return{$$typeof:p,type:a.type,key:g,ref:h,props:d,_owner:f}},createFactory:function(a){var b=N.bind(null,a);b.type=a;return b},isValidElement:O,version:"16.6.1-canary-c5b7d26c7", | ||
unstable_ConcurrentMode:x,unstable_Profiler:u,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:K,assign:k}},Y={default:X},Z=Y&&X||Y;module.exports=Z.default||Z; |
@@ -7,3 +7,3 @@ { | ||
], | ||
"version": "0.0.0-a8988e4-1d1a717", | ||
"version": "0.0.0-c5b7d26c7", | ||
"homepage": "https://reactjs.org/", | ||
@@ -15,2 +15,3 @@ "bugs": "https://github.com/facebook/react/issues", | ||
"README.md", | ||
"build-info.json", | ||
"index.js", | ||
@@ -29,3 +30,3 @@ "cjs/", | ||
"prop-types": "^15.6.2", | ||
"scheduler": "0.0.0-a8988e4-1d1a717" | ||
"scheduler": "0.0.0-c5b7d26c7" | ||
}, | ||
@@ -36,9 +37,3 @@ "browserify": { | ||
] | ||
}, | ||
"buildInfo": { | ||
"buildID": "a8988e4-1d1a717", | ||
"checksum": "c0574ce144d85eb11e1035628ca86462045d817b", | ||
"unstable": true, | ||
"partial": false | ||
} | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
196815
10
4509
+ Addedscheduler@0.0.0-c5b7d26c7(transitive)
- Removedscheduler@0.0.0-a8988e4-1d1a717(transitive)
Updatedscheduler@0.0.0-c5b7d26c7