react-test-renderer 15.5.4 → 15.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +16 -26
- package/lib/CallbackQueue.js +3 -5
- package/lib/EventConstants.js +3 -5
- package/lib/EventPluginHub.js +3 -9
- package/lib/EventPluginRegistry.js +3 -7
- package/lib/EventPluginUtils.js +3 -5
- package/lib/EventPropagators.js +3 -5
- package/lib/KeyEscapeUtils.js +3 -5
- package/lib/PluginModuleType.js +3 -5
- package/lib/PooledClass.js +3 -5
- package/lib/ReactChildFiber.js +3 -6
- package/lib/ReactChildReconciler.js +7 -10
- package/lib/ReactComponentEnvironment.js +3 -7
- package/lib/ReactCompositeComponent.js +5 -9
- package/lib/ReactCoroutine.js +3 -5
- package/lib/ReactDebugTool.js +6 -6
- package/lib/ReactDefaultBatchingStrategy.js +3 -5
- package/lib/ReactElementSymbol.js +3 -5
- package/lib/ReactEmptyComponent.js +3 -5
- package/lib/ReactErrorUtils.js +6 -6
- package/lib/ReactEventEmitterMixin.js +3 -6
- package/lib/ReactFeatureFlags.js +3 -5
- package/lib/ReactFiber.js +3 -7
- package/lib/ReactFiberBeginWork.js +3 -6
- package/lib/ReactFiberCommitWork.js +3 -6
- package/lib/ReactFiberCompleteWork.js +3 -7
- package/lib/ReactFiberReconciler.js +3 -5
- package/lib/ReactFiberRoot.js +3 -5
- package/lib/ReactFiberScheduler.js +3 -5
- package/lib/ReactFiberUpdateQueue.js +3 -5
- package/lib/ReactHostComponent.js +3 -5
- package/lib/ReactHostOperationHistoryHook.js +3 -5
- package/lib/ReactInstanceMap.js +3 -7
- package/lib/ReactInstanceType.js +3 -5
- package/lib/ReactInstrumentation.js +3 -5
- package/lib/ReactInvalidSetStateWarningHook.js +3 -5
- package/lib/ReactMultiChild.js +3 -9
- package/lib/ReactMultiChildUpdateTypes.js +3 -5
- package/lib/ReactNodeTypes.js +3 -5
- package/lib/ReactOwner.js +3 -6
- package/lib/ReactPerf.js +9 -11
- package/lib/ReactPriorityLevel.js +5 -6
- package/lib/ReactPropTypeLocationNames.js +3 -5
- package/lib/ReactPropTypeLocations.js +3 -5
- package/lib/ReactPropTypesSecret.js +3 -5
- package/lib/ReactReconciler.js +5 -9
- package/lib/ReactRef.js +3 -5
- package/lib/ReactReifiedYield.js +3 -5
- package/lib/ReactShallowRenderer.js +3 -5
- package/lib/ReactSimpleEmptyComponent.js +5 -7
- package/lib/ReactSyntheticEventType.js +3 -5
- package/lib/ReactTestEmptyComponent.js +3 -5
- package/lib/ReactTestMount.js +8 -8
- package/lib/ReactTestReconcileTransaction.js +2 -4
- package/lib/ReactTestRenderer.js +4 -5
- package/lib/ReactTestTextComponent.js +3 -5
- package/lib/ReactTypeOfWork.js +3 -5
- package/lib/ReactTypes.js +3 -5
- package/lib/ReactUpdateQueue.js +4 -8
- package/lib/ReactUpdates.js +4 -6
- package/lib/ReactVersion.js +4 -6
- package/lib/ResponderEventPlugin.js +3 -7
- package/lib/ResponderSyntheticEvent.js +3 -5
- package/lib/ResponderTouchHistoryStore.js +3 -5
- package/lib/SyntheticEvent.js +34 -33
- package/lib/Transaction.js +6 -5
- package/lib/accumulate.js +3 -5
- package/lib/accumulateInto.js +3 -5
- package/lib/adler32.js +3 -5
- package/lib/canDefineProperty.js +3 -5
- package/lib/checkReactTypeSpec.js +3 -5
- package/lib/deprecated.js +6 -8
- package/lib/flattenChildren.js +3 -5
- package/lib/forEachAccumulated.js +3 -5
- package/lib/getHostComponentFromComposite.js +3 -5
- package/lib/getIteratorFn.js +3 -5
- package/lib/instantiateReactComponent.js +4 -6
- package/lib/isTextInputElement.js +17 -19
- package/lib/lowPriorityWarning.js +62 -0
- package/lib/reactProdInvariant.js +2 -4
- package/lib/shallow/ARIADOMPropertyConfig.js +3 -5
- package/lib/shallow/AutoFocusUtils.js +3 -5
- package/lib/shallow/BeforeInputEventPlugin.js +3 -6
- package/lib/shallow/CSSProperty.js +10 -5
- package/lib/shallow/CSSPropertyOperations.js +17 -13
- package/lib/shallow/CallbackQueue.js +3 -5
- package/lib/shallow/ChangeEventPlugin.js +52 -88
- package/lib/shallow/DOMChildrenOperations.js +7 -8
- package/lib/shallow/DOMLazyTree.js +3 -5
- package/lib/shallow/DOMNamespaces.js +3 -5
- package/lib/shallow/DOMProperty.js +3 -6
- package/lib/shallow/DOMPropertyOperations.js +3 -7
- package/lib/shallow/Danger.js +3 -7
- package/lib/shallow/DefaultEventPluginOrder.js +3 -5
- package/lib/shallow/EnterLeaveEventPlugin.js +3 -7
- package/lib/shallow/EventConstants.js +3 -5
- package/lib/shallow/EventPluginHub.js +3 -9
- package/lib/shallow/EventPluginRegistry.js +3 -7
- package/lib/shallow/EventPluginUtils.js +3 -5
- package/lib/shallow/EventPropagators.js +3 -5
- package/lib/shallow/FallbackCompositionState.js +3 -5
- package/lib/shallow/HTMLDOMPropertyConfig.js +4 -5
- package/lib/shallow/KeyEscapeUtils.js +3 -5
- package/lib/shallow/LinkedValueUtils.js +10 -12
- package/lib/shallow/PluginModuleType.js +3 -5
- package/lib/shallow/PooledClass.js +3 -5
- package/lib/shallow/ReactBrowserEventEmitter.js +3 -9
- package/lib/shallow/ReactChildFiber.js +3 -6
- package/lib/shallow/ReactChildReconciler.js +7 -10
- package/lib/shallow/ReactComponentBrowserEnvironment.js +3 -7
- package/lib/shallow/ReactComponentEnvironment.js +3 -7
- package/lib/shallow/ReactCompositeComponent.js +5 -9
- package/lib/shallow/ReactCoroutine.js +3 -5
- package/lib/shallow/ReactDOM.js +5 -7
- package/lib/shallow/ReactDOMComponent.js +40 -29
- package/lib/shallow/ReactDOMComponentFlags.js +3 -5
- package/lib/shallow/ReactDOMComponentTree.js +3 -5
- package/lib/shallow/ReactDOMContainerInfo.js +3 -5
- package/lib/shallow/ReactDOMEmptyComponent.js +3 -5
- package/lib/shallow/ReactDOMFeatureFlags.js +3 -5
- package/lib/shallow/ReactDOMFiber.js +3 -6
- package/lib/shallow/ReactDOMIDOperations.js +3 -6
- package/lib/shallow/ReactDOMInput.js +8 -8
- package/lib/shallow/ReactDOMInvalidARIAHook.js +3 -5
- package/lib/shallow/ReactDOMNullInputValuePropHook.js +3 -5
- package/lib/shallow/ReactDOMOption.js +3 -6
- package/lib/shallow/ReactDOMSelect.js +3 -5
- package/lib/shallow/ReactDOMSelection.js +3 -5
- package/lib/shallow/ReactDOMServer.js +3 -5
- package/lib/shallow/ReactDOMTextComponent.js +3 -7
- package/lib/shallow/ReactDOMTextarea.js +3 -5
- package/lib/shallow/ReactDOMTreeTraversal.js +3 -5
- package/lib/shallow/ReactDOMUnknownPropertyHook.js +3 -5
- package/lib/shallow/ReactDebugTool.js +6 -6
- package/lib/shallow/ReactDefaultBatchingStrategy.js +3 -5
- package/lib/shallow/ReactDefaultInjection.js +3 -5
- package/lib/shallow/ReactElementSymbol.js +3 -5
- package/lib/shallow/ReactEmptyComponent.js +3 -5
- package/lib/shallow/ReactErrorUtils.js +6 -6
- package/lib/shallow/ReactEventEmitterMixin.js +3 -6
- package/lib/shallow/ReactEventListener.js +3 -5
- package/lib/shallow/ReactFeatureFlags.js +3 -5
- package/lib/shallow/ReactFiber.js +3 -7
- package/lib/shallow/ReactFiberBeginWork.js +3 -6
- package/lib/shallow/ReactFiberCommitWork.js +3 -6
- package/lib/shallow/ReactFiberCompleteWork.js +3 -7
- package/lib/shallow/ReactFiberReconciler.js +3 -5
- package/lib/shallow/ReactFiberRoot.js +3 -5
- package/lib/shallow/ReactFiberScheduler.js +3 -5
- package/lib/shallow/ReactFiberUpdateQueue.js +3 -5
- package/lib/shallow/ReactHostComponent.js +3 -5
- package/lib/shallow/ReactHostOperationHistoryHook.js +3 -5
- package/lib/shallow/ReactInjection.js +3 -5
- package/lib/shallow/ReactInputSelection.js +3 -6
- package/lib/shallow/ReactInstanceMap.js +3 -7
- package/lib/shallow/ReactInstanceType.js +3 -5
- package/lib/shallow/ReactInstrumentation.js +3 -5
- package/lib/shallow/ReactInvalidSetStateWarningHook.js +3 -5
- package/lib/shallow/ReactMarkupChecksum.js +3 -5
- package/lib/shallow/ReactMount.js +10 -12
- package/lib/shallow/ReactMultiChild.js +3 -9
- package/lib/shallow/ReactMultiChildUpdateTypes.js +3 -5
- package/lib/shallow/ReactNodeTypes.js +3 -5
- package/lib/shallow/ReactOwner.js +3 -6
- package/lib/shallow/ReactPerf.js +9 -11
- package/lib/shallow/ReactPriorityLevel.js +5 -6
- package/lib/shallow/ReactPropTypeLocationNames.js +3 -5
- package/lib/shallow/ReactPropTypeLocations.js +3 -5
- package/lib/shallow/ReactPropTypesSecret.js +3 -5
- package/lib/shallow/ReactReconcileTransaction.js +3 -5
- package/lib/shallow/ReactReconciler.js +5 -9
- package/lib/shallow/ReactRef.js +3 -5
- package/lib/shallow/ReactReifiedYield.js +3 -5
- package/lib/shallow/ReactServerBatchingStrategy.js +3 -5
- package/lib/shallow/ReactServerRendering.js +3 -5
- package/lib/shallow/ReactServerRenderingTransaction.js +3 -5
- package/lib/shallow/ReactServerUpdateQueue.js +3 -5
- package/lib/shallow/ReactShallowRenderer.js +3 -5
- package/lib/shallow/ReactSimpleEmptyComponent.js +5 -7
- package/lib/shallow/ReactSyntheticEventType.js +3 -5
- package/lib/shallow/ReactTestEmptyComponent.js +3 -5
- package/lib/shallow/ReactTestMount.js +8 -8
- package/lib/shallow/ReactTestReconcileTransaction.js +2 -4
- package/lib/shallow/ReactTestRenderer.js +4 -5
- package/lib/shallow/ReactTestTextComponent.js +3 -5
- package/lib/shallow/ReactTypeOfWork.js +3 -5
- package/lib/shallow/ReactTypes.js +3 -5
- package/lib/shallow/ReactUpdateQueue.js +4 -8
- package/lib/shallow/ReactUpdates.js +4 -6
- package/lib/shallow/ReactVersion.js +4 -6
- package/lib/shallow/ResponderEventPlugin.js +3 -7
- package/lib/shallow/ResponderSyntheticEvent.js +3 -5
- package/lib/shallow/ResponderTouchHistoryStore.js +3 -5
- package/lib/shallow/SVGDOMPropertyConfig.js +3 -5
- package/lib/shallow/SelectEventPlugin.js +3 -8
- package/lib/shallow/SimpleEventPlugin.js +3 -7
- package/lib/shallow/SyntheticAnimationEvent.js +3 -5
- package/lib/shallow/SyntheticClipboardEvent.js +3 -5
- package/lib/shallow/SyntheticCompositionEvent.js +3 -5
- package/lib/shallow/SyntheticDragEvent.js +3 -5
- package/lib/shallow/SyntheticEvent.js +34 -33
- package/lib/shallow/SyntheticFocusEvent.js +3 -5
- package/lib/shallow/SyntheticInputEvent.js +3 -5
- package/lib/shallow/SyntheticKeyboardEvent.js +3 -5
- package/lib/shallow/SyntheticMouseEvent.js +3 -5
- package/lib/shallow/SyntheticTouchEvent.js +3 -5
- package/lib/shallow/SyntheticTransitionEvent.js +3 -5
- package/lib/shallow/SyntheticUIEvent.js +3 -5
- package/lib/shallow/SyntheticWheelEvent.js +6 -11
- package/lib/shallow/TapEventPlugin.js +3 -7
- package/lib/shallow/Transaction.js +6 -5
- package/lib/shallow/ViewportMetrics.js +3 -7
- package/lib/shallow/accumulate.js +3 -5
- package/lib/shallow/accumulateInto.js +3 -5
- package/lib/shallow/adler32.js +3 -5
- package/lib/shallow/canDefineProperty.js +3 -5
- package/lib/shallow/checkReactTypeSpec.js +3 -5
- package/lib/shallow/createMicrosoftUnsafeLocalFunction.js +3 -5
- package/lib/shallow/dangerousStyleValue.js +5 -7
- package/lib/shallow/deprecated.js +6 -8
- package/lib/shallow/escapeTextContentForBrowser.js +3 -6
- package/lib/shallow/findDOMNode.js +3 -5
- package/lib/shallow/flattenChildren.js +3 -5
- package/lib/shallow/forEachAccumulated.js +3 -5
- package/lib/shallow/getEventCharCode.js +3 -5
- package/lib/shallow/getEventKey.js +27 -19
- package/lib/shallow/getEventModifierState.js +7 -9
- package/lib/shallow/getEventTarget.js +3 -5
- package/lib/shallow/getHostComponentFromComposite.js +3 -5
- package/lib/shallow/getIteratorFn.js +3 -5
- package/lib/shallow/getNodeForCharacterOffset.js +3 -5
- package/lib/shallow/getTextContentAccessor.js +3 -5
- package/lib/shallow/getVendorPrefixedEventName.js +3 -5
- package/lib/shallow/inputValueTracking.js +120 -0
- package/lib/shallow/instantiateReactComponent.js +4 -6
- package/lib/shallow/isEventSupported.js +3 -5
- package/lib/shallow/isTextInputElement.js +17 -19
- package/lib/shallow/lowPriorityWarning.js +62 -0
- package/lib/shallow/quoteAttributeValueForBrowser.js +3 -5
- package/lib/shallow/reactProdInvariant.js +2 -4
- package/lib/shallow/renderSubtreeIntoContainer.js +3 -5
- package/lib/shallow/setInnerHTML.js +4 -6
- package/lib/shallow/setTextContent.js +3 -5
- package/lib/shallow/shouldUpdateReactComponent.js +3 -5
- package/lib/shallow/traverseAllChildren.js +4 -6
- package/lib/shallow/validateDOMNesting.js +4 -12
- package/lib/shouldUpdateReactComponent.js +3 -5
- package/lib/traverseAllChildren.js +4 -6
- package/package.json +21 -17
- package/PATENTS +0 -33
package/lib/ReactUpdateQueue.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2015-present, Facebook, Inc.
|
|
3
|
-
* All rights reserved.
|
|
2
|
+
* Copyright (c) 2015-present, Facebook, Inc.
|
|
4
3
|
*
|
|
5
|
-
* This source code is licensed under the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
6
|
*
|
|
9
7
|
*/
|
|
10
8
|
|
|
@@ -51,7 +49,7 @@ function getInternalInstanceReadyForUpdate(publicInstance, callerName) {
|
|
|
51
49
|
}
|
|
52
50
|
|
|
53
51
|
if (process.env.NODE_ENV !== 'production') {
|
|
54
|
-
process.env.NODE_ENV !== 'production' ? warning(ReactCurrentOwner.current == null, '%s(...): Cannot update during an existing state transition (such as ' +
|
|
52
|
+
process.env.NODE_ENV !== 'production' ? warning(ReactCurrentOwner.current == null, '%s(...): Cannot update during an existing state transition (such as ' + "within `render` or another component's constructor). Render methods " + 'should be a pure function of props and state; constructor ' + 'side-effects are an anti-pattern, but can be moved to ' + '`componentWillMount`.', callerName) : void 0;
|
|
55
53
|
}
|
|
56
54
|
|
|
57
55
|
return internalInstance;
|
|
@@ -62,7 +60,6 @@ function getInternalInstanceReadyForUpdate(publicInstance, callerName) {
|
|
|
62
60
|
* reconciliation step.
|
|
63
61
|
*/
|
|
64
62
|
var ReactUpdateQueue = {
|
|
65
|
-
|
|
66
63
|
/**
|
|
67
64
|
* Checks whether or not this composite component is mounted.
|
|
68
65
|
* @param {ReactClass} publicInstance The instance we want to test.
|
|
@@ -229,7 +226,6 @@ var ReactUpdateQueue = {
|
|
|
229
226
|
validateCallback: function (callback, callerName) {
|
|
230
227
|
!(!callback || typeof callback === 'function') ? process.env.NODE_ENV !== 'production' ? invariant(false, '%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.', callerName, formatUnexpectedArgument(callback)) : _prodInvariant('122', callerName, formatUnexpectedArgument(callback)) : void 0;
|
|
231
228
|
}
|
|
232
|
-
|
|
233
229
|
};
|
|
234
230
|
|
|
235
231
|
module.exports = ReactUpdateQueue;
|
package/lib/ReactUpdates.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
3
|
-
* All rights reserved.
|
|
2
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
4
3
|
*
|
|
5
|
-
* This source code is licensed under the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
6
|
*
|
|
9
7
|
*/
|
|
10
8
|
|
|
@@ -212,7 +210,7 @@ function enqueueUpdate(component) {
|
|
|
212
210
|
* if no updates are currently being performed.
|
|
213
211
|
*/
|
|
214
212
|
function asap(callback, context) {
|
|
215
|
-
|
|
213
|
+
invariant(batchingStrategy.isBatchingUpdates, "ReactUpdates.asap: Can't enqueue an asap callback in a context where" + 'updates are not being batched.');
|
|
216
214
|
asapCallbackQueue.enqueue(callback, context);
|
|
217
215
|
asapEnqueued = true;
|
|
218
216
|
}
|
package/lib/ReactVersion.js
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
3
|
-
* All rights reserved.
|
|
2
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
4
3
|
*
|
|
5
|
-
* This source code is licensed under the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
6
|
*
|
|
9
7
|
*/
|
|
10
8
|
|
|
11
9
|
'use strict';
|
|
12
10
|
|
|
13
|
-
module.exports = '15.
|
|
11
|
+
module.exports = '15.7.0';
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
3
|
-
* All rights reserved.
|
|
2
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
4
3
|
*
|
|
5
|
-
* This source code is licensed under the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
6
|
*
|
|
9
7
|
*/
|
|
10
8
|
|
|
@@ -340,7 +338,6 @@ function setResponderAndExtractTransfer(topLevelType, targetInst, nativeEvent, n
|
|
|
340
338
|
EventPropagators.accumulateDirectDispatches(grantEvent);
|
|
341
339
|
var blockHostResponder = executeDirectDispatch(grantEvent) === true;
|
|
342
340
|
if (responderInst) {
|
|
343
|
-
|
|
344
341
|
var terminationRequestEvent = ResponderSyntheticEvent.getPooled(eventTypes.responderTerminationRequest, responderInst, nativeEvent, nativeEventTarget);
|
|
345
342
|
terminationRequestEvent.touchHistory = ResponderTouchHistoryStore.touchHistory;
|
|
346
343
|
EventPropagators.accumulateDirectDispatches(terminationRequestEvent);
|
|
@@ -411,7 +408,6 @@ function noResponderTouches(nativeEvent) {
|
|
|
411
408
|
}
|
|
412
409
|
|
|
413
410
|
var ResponderEventPlugin = {
|
|
414
|
-
|
|
415
411
|
/* For unit testing only */
|
|
416
412
|
_getResponderID: function () {
|
|
417
413
|
return responderInst ? responderInst._rootNodeID : null;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
3
|
-
* All rights reserved.
|
|
2
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
4
3
|
*
|
|
5
|
-
* This source code is licensed under the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
6
|
*
|
|
9
7
|
*/
|
|
10
8
|
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
3
|
-
* All rights reserved.
|
|
2
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
4
3
|
*
|
|
5
|
-
* This source code is licensed under the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
6
|
*
|
|
9
7
|
*
|
|
10
8
|
*/
|
package/lib/SyntheticEvent.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
3
|
-
* All rights reserved.
|
|
2
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
4
3
|
*
|
|
5
|
-
* This source code is licensed under the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
6
|
*
|
|
9
7
|
*/
|
|
10
8
|
|
|
@@ -102,7 +100,6 @@ function SyntheticEvent(dispatchConfig, targetInst, nativeEvent, nativeEventTarg
|
|
|
102
100
|
}
|
|
103
101
|
|
|
104
102
|
_assign(SyntheticEvent.prototype, {
|
|
105
|
-
|
|
106
103
|
preventDefault: function () {
|
|
107
104
|
this.defaultPrevented = true;
|
|
108
105
|
var event = this.nativeEvent;
|
|
@@ -112,8 +109,8 @@ _assign(SyntheticEvent.prototype, {
|
|
|
112
109
|
|
|
113
110
|
if (event.preventDefault) {
|
|
114
111
|
event.preventDefault();
|
|
112
|
+
// eslint-disable-next-line valid-typeof
|
|
115
113
|
} else if (typeof event.returnValue !== 'unknown') {
|
|
116
|
-
// eslint-disable-line valid-typeof
|
|
117
114
|
event.returnValue = false;
|
|
118
115
|
}
|
|
119
116
|
this.isDefaultPrevented = emptyFunction.thatReturnsTrue;
|
|
@@ -127,8 +124,8 @@ _assign(SyntheticEvent.prototype, {
|
|
|
127
124
|
|
|
128
125
|
if (event.stopPropagation) {
|
|
129
126
|
event.stopPropagation();
|
|
127
|
+
// eslint-disable-next-line valid-typeof
|
|
130
128
|
} else if (typeof event.cancelBubble !== 'unknown') {
|
|
131
|
-
// eslint-disable-line valid-typeof
|
|
132
129
|
// The ChangeEventPlugin registers a "propertychange" event for
|
|
133
130
|
// IE. This event does not support bubbling or cancelling, and
|
|
134
131
|
// any references to cancelBubble throw "Member not found". A
|
|
@@ -177,34 +174,10 @@ _assign(SyntheticEvent.prototype, {
|
|
|
177
174
|
Object.defineProperty(this, 'stopPropagation', getPooledWarningPropertyDefinition('stopPropagation', emptyFunction));
|
|
178
175
|
}
|
|
179
176
|
}
|
|
180
|
-
|
|
181
177
|
});
|
|
182
178
|
|
|
183
179
|
SyntheticEvent.Interface = EventInterface;
|
|
184
180
|
|
|
185
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
186
|
-
if (isProxySupported) {
|
|
187
|
-
/*eslint-disable no-func-assign */
|
|
188
|
-
SyntheticEvent = new Proxy(SyntheticEvent, {
|
|
189
|
-
construct: function (target, args) {
|
|
190
|
-
return this.apply(target, Object.create(target.prototype), args);
|
|
191
|
-
},
|
|
192
|
-
apply: function (constructor, that, args) {
|
|
193
|
-
return new Proxy(constructor.apply(that, args), {
|
|
194
|
-
set: function (target, prop, value) {
|
|
195
|
-
if (prop !== 'isPersistent' && !target.constructor.Interface.hasOwnProperty(prop) && shouldBeReleasedProperties.indexOf(prop) === -1) {
|
|
196
|
-
process.env.NODE_ENV !== 'production' ? warning(didWarnForAddedNewProperty || target.isPersistent(), 'This synthetic event is reused for performance reasons. If you\'re ' + 'seeing this, you\'re adding a new property in the synthetic event object. ' + 'The property is never released. See ' + 'https://fb.me/react-event-pooling for more information.') : void 0;
|
|
197
|
-
didWarnForAddedNewProperty = true;
|
|
198
|
-
}
|
|
199
|
-
target[prop] = value;
|
|
200
|
-
return true;
|
|
201
|
-
}
|
|
202
|
-
});
|
|
203
|
-
}
|
|
204
|
-
});
|
|
205
|
-
/*eslint-enable no-func-assign */
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
181
|
/**
|
|
209
182
|
* Helper to reduce boilerplate when creating subclasses.
|
|
210
183
|
*
|
|
@@ -228,6 +201,34 @@ SyntheticEvent.augmentClass = function (Class, Interface) {
|
|
|
228
201
|
PooledClass.addPoolingTo(Class, PooledClass.fourArgumentPooler);
|
|
229
202
|
};
|
|
230
203
|
|
|
204
|
+
/** Proxying after everything set on SyntheticEvent
|
|
205
|
+
* to resolve Proxy issue on some WebKit browsers
|
|
206
|
+
* in which some Event properties are set to undefined (GH#10010)
|
|
207
|
+
*/
|
|
208
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
209
|
+
if (isProxySupported) {
|
|
210
|
+
/*eslint-disable no-func-assign */
|
|
211
|
+
SyntheticEvent = new Proxy(SyntheticEvent, {
|
|
212
|
+
construct: function (target, args) {
|
|
213
|
+
return this.apply(target, Object.create(target.prototype), args);
|
|
214
|
+
},
|
|
215
|
+
apply: function (constructor, that, args) {
|
|
216
|
+
return new Proxy(constructor.apply(that, args), {
|
|
217
|
+
set: function (target, prop, value) {
|
|
218
|
+
if (prop !== 'isPersistent' && !target.constructor.Interface.hasOwnProperty(prop) && shouldBeReleasedProperties.indexOf(prop) === -1) {
|
|
219
|
+
process.env.NODE_ENV !== 'production' ? warning(didWarnForAddedNewProperty || target.isPersistent(), "This synthetic event is reused for performance reasons. If you're " + "seeing this, you're adding a new property in the synthetic event object. " + 'The property is never released. See ' + 'https://fb.me/react-event-pooling for more information.') : void 0;
|
|
220
|
+
didWarnForAddedNewProperty = true;
|
|
221
|
+
}
|
|
222
|
+
target[prop] = value;
|
|
223
|
+
return true;
|
|
224
|
+
}
|
|
225
|
+
});
|
|
226
|
+
}
|
|
227
|
+
});
|
|
228
|
+
/*eslint-enable no-func-assign */
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
|
|
231
232
|
PooledClass.addPoolingTo(SyntheticEvent, PooledClass.fourArgumentPooler);
|
|
232
233
|
|
|
233
234
|
module.exports = SyntheticEvent;
|
|
@@ -262,6 +263,6 @@ function getPooledWarningPropertyDefinition(propName, getVal) {
|
|
|
262
263
|
|
|
263
264
|
function warn(action, result) {
|
|
264
265
|
var warningCondition = false;
|
|
265
|
-
process.env.NODE_ENV !== 'production' ? warning(warningCondition,
|
|
266
|
+
process.env.NODE_ENV !== 'production' ? warning(warningCondition, "This synthetic event is reused for performance reasons. If you're seeing this, " + "you're %s `%s` on a released/nullified synthetic event. %s. " + 'If you must keep the original synthetic event around, use event.persist(). ' + 'See https://fb.me/react-event-pooling for more information.', action, propName, result) : void 0;
|
|
266
267
|
}
|
|
267
268
|
}
|
package/lib/Transaction.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
3
|
-
* All rights reserved.
|
|
2
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
4
3
|
*
|
|
5
|
-
* This source code is licensed under the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
6
|
*
|
|
9
7
|
*
|
|
10
8
|
*/
|
|
@@ -108,6 +106,8 @@ var TransactionImpl = {
|
|
|
108
106
|
return !!this._isInTransaction;
|
|
109
107
|
},
|
|
110
108
|
|
|
109
|
+
/* eslint-disable space-before-function-paren */
|
|
110
|
+
|
|
111
111
|
/**
|
|
112
112
|
* Executes the function within a safety window. Use this for the top level
|
|
113
113
|
* methods that result in large amounts of computation/mutations that would
|
|
@@ -126,6 +126,7 @@ var TransactionImpl = {
|
|
|
126
126
|
* @return {*} Return value from `method`.
|
|
127
127
|
*/
|
|
128
128
|
perform: function (method, scope, a, b, c, d, e, f) {
|
|
129
|
+
/* eslint-enable space-before-function-paren */
|
|
129
130
|
!!this.isInTransaction() ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Transaction.perform(...): Cannot initialize a transaction when there is already an outstanding transaction.') : _prodInvariant('27') : void 0;
|
|
130
131
|
var errorThrown;
|
|
131
132
|
var ret;
|
package/lib/accumulate.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
3
|
-
* All rights reserved.
|
|
2
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
4
3
|
*
|
|
5
|
-
* This source code is licensed under the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
6
|
*
|
|
9
7
|
*
|
|
10
8
|
*/
|
package/lib/accumulateInto.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2014-present, Facebook, Inc.
|
|
3
|
-
* All rights reserved.
|
|
2
|
+
* Copyright (c) 2014-present, Facebook, Inc.
|
|
4
3
|
*
|
|
5
|
-
* This source code is licensed under the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
6
|
*
|
|
9
7
|
*
|
|
10
8
|
*/
|
package/lib/adler32.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
3
|
-
* All rights reserved.
|
|
2
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
4
3
|
*
|
|
5
|
-
* This source code is licensed under the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
6
|
*
|
|
9
7
|
*
|
|
10
8
|
*/
|
package/lib/canDefineProperty.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
3
|
-
* All rights reserved.
|
|
2
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
4
3
|
*
|
|
5
|
-
* This source code is licensed under the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
6
|
*
|
|
9
7
|
*
|
|
10
8
|
*/
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
3
|
-
* All rights reserved.
|
|
2
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
4
3
|
*
|
|
5
|
-
* This source code is licensed under the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
6
|
*
|
|
9
7
|
*/
|
|
10
8
|
|
package/lib/deprecated.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
3
|
-
* All rights reserved.
|
|
2
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
4
3
|
*
|
|
5
|
-
* This source code is licensed under the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
6
|
*
|
|
9
7
|
*
|
|
10
8
|
*/
|
|
@@ -13,7 +11,7 @@
|
|
|
13
11
|
|
|
14
12
|
var _assign = require('object-assign');
|
|
15
13
|
|
|
16
|
-
var
|
|
14
|
+
var lowPriorityWarning = require('./lowPriorityWarning');
|
|
17
15
|
|
|
18
16
|
/**
|
|
19
17
|
* This will log a single deprecation notice per function and forward the call
|
|
@@ -30,12 +28,12 @@ function deprecated(fnName, newModule, newPackage, ctx, fn) {
|
|
|
30
28
|
var warned = false;
|
|
31
29
|
if (process.env.NODE_ENV !== 'production') {
|
|
32
30
|
var newFn = function () {
|
|
33
|
-
|
|
31
|
+
lowPriorityWarning(warned,
|
|
34
32
|
/* eslint-disable no-useless-concat */
|
|
35
33
|
// Require examples in this string must be split to prevent React's
|
|
36
34
|
// build tools from mistaking them for real requires.
|
|
37
35
|
// Otherwise the build tools will attempt to build a '%s' module.
|
|
38
|
-
'React.%s is deprecated. Please use %s.%s from require' +
|
|
36
|
+
'React.%s is deprecated. Please use %s.%s from require' + "('%s') " + 'instead.', fnName, newModule, fnName, newPackage);
|
|
39
37
|
/* eslint-enable no-useless-concat */
|
|
40
38
|
warned = true;
|
|
41
39
|
return fn.apply(ctx, arguments);
|
package/lib/flattenChildren.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
3
|
-
* All rights reserved.
|
|
2
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
4
3
|
*
|
|
5
|
-
* This source code is licensed under the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
6
|
*
|
|
9
7
|
*
|
|
10
8
|
*/
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
3
|
-
* All rights reserved.
|
|
2
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
4
3
|
*
|
|
5
|
-
* This source code is licensed under the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
6
|
*
|
|
9
7
|
*
|
|
10
8
|
*/
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
3
|
-
* All rights reserved.
|
|
2
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
4
3
|
*
|
|
5
|
-
* This source code is licensed under the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
6
|
*
|
|
9
7
|
*/
|
|
10
8
|
|
package/lib/getIteratorFn.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
3
|
-
* All rights reserved.
|
|
2
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
4
3
|
*
|
|
5
|
-
* This source code is licensed under the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
6
|
*
|
|
9
7
|
*
|
|
10
8
|
*/
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
3
|
-
* All rights reserved.
|
|
2
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
4
3
|
*
|
|
5
|
-
* This source code is licensed under the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
6
|
*
|
|
9
7
|
*/
|
|
10
8
|
|
|
@@ -67,7 +65,7 @@ function instantiateReactComponent(node, shouldHaveDebugID) {
|
|
|
67
65
|
var info = '';
|
|
68
66
|
if (process.env.NODE_ENV !== 'production') {
|
|
69
67
|
if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
|
|
70
|
-
info += ' You likely forgot to export your component from the file ' +
|
|
68
|
+
info += ' You likely forgot to export your component from the file ' + "it's defined in.";
|
|
71
69
|
}
|
|
72
70
|
}
|
|
73
71
|
info += getDeclarationErrorAddendum(element._owner);
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
3
|
-
* All rights reserved.
|
|
2
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
4
3
|
*
|
|
5
|
-
* This source code is licensed under the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
6
|
*
|
|
9
7
|
*
|
|
10
8
|
*/
|
|
@@ -16,21 +14,21 @@
|
|
|
16
14
|
*/
|
|
17
15
|
|
|
18
16
|
var supportedInputTypes = {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
color: true,
|
|
18
|
+
date: true,
|
|
19
|
+
datetime: true,
|
|
22
20
|
'datetime-local': true,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
21
|
+
email: true,
|
|
22
|
+
month: true,
|
|
23
|
+
number: true,
|
|
24
|
+
password: true,
|
|
25
|
+
range: true,
|
|
26
|
+
search: true,
|
|
27
|
+
tel: true,
|
|
28
|
+
text: true,
|
|
29
|
+
time: true,
|
|
30
|
+
url: true,
|
|
31
|
+
week: true
|
|
34
32
|
};
|
|
35
33
|
|
|
36
34
|
function isTextInputElement(elem) {
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2014-present, Facebook, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
'use strict';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Forked from fbjs/warning:
|
|
13
|
+
* https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js
|
|
14
|
+
*
|
|
15
|
+
* Only change is we use console.warn instead of console.error,
|
|
16
|
+
* and do nothing when 'console' is not supported.
|
|
17
|
+
* This really simplifies the code.
|
|
18
|
+
* ---
|
|
19
|
+
* Similar to invariant but only logs a warning if the condition is not met.
|
|
20
|
+
* This can be used to log issues in development environments in critical
|
|
21
|
+
* paths. Removing the logging code for production environments will keep the
|
|
22
|
+
* same logic and follow the same code paths.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
var lowPriorityWarning = function () {};
|
|
26
|
+
|
|
27
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
28
|
+
var printWarning = function (format) {
|
|
29
|
+
for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
30
|
+
args[_key - 1] = arguments[_key];
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
var argIndex = 0;
|
|
34
|
+
var message = 'Warning: ' + format.replace(/%s/g, function () {
|
|
35
|
+
return args[argIndex++];
|
|
36
|
+
});
|
|
37
|
+
if (typeof console !== 'undefined') {
|
|
38
|
+
console.warn(message);
|
|
39
|
+
}
|
|
40
|
+
try {
|
|
41
|
+
// --- Welcome to debugging React ---
|
|
42
|
+
// This error was thrown as a convenience so that you can use this stack
|
|
43
|
+
// to find the callsite that caused this warning to fire.
|
|
44
|
+
throw new Error(message);
|
|
45
|
+
} catch (x) {}
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
lowPriorityWarning = function (condition, format) {
|
|
49
|
+
if (format === undefined) {
|
|
50
|
+
throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');
|
|
51
|
+
}
|
|
52
|
+
if (!condition) {
|
|
53
|
+
for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
|
|
54
|
+
args[_key2 - 2] = arguments[_key2];
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
printWarning.apply(undefined, [format].concat(args));
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
module.exports = lowPriorityWarning;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
3
|
-
* All rights reserved.
|
|
4
3
|
*
|
|
5
|
-
* This source code is licensed under the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
6
|
*
|
|
9
7
|
*
|
|
10
8
|
*/
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
3
|
-
* All rights reserved.
|
|
2
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
4
3
|
*
|
|
5
|
-
* This source code is licensed under the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
6
|
*
|
|
9
7
|
*/
|
|
10
8
|
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
3
|
-
* All rights reserved.
|
|
2
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
4
3
|
*
|
|
5
|
-
* This source code is licensed under the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
6
|
*
|
|
9
7
|
*/
|
|
10
8
|
|