From 46369fa511e4b428266f011a092189714d136738 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Powaga?= Date: Wed, 28 Feb 2018 23:06:23 +0000 Subject: [PATCH] Update to React 16 --- node_modules/asap/CHANGES.md | 6 + node_modules/asap/package.json | 75 +- node_modules/core-js/package.json | 61 +- node_modules/create-react-class/LICENSE.txt | 42 +- node_modules/create-react-class/PATENTS | 33 - .../create-react-class/create-react-class.js | 545 +- .../create-react-class.min.js | 2 +- node_modules/create-react-class/factory.js | 314 +- node_modules/create-react-class/index.js | 15 +- node_modules/create-react-class/package.json | 114 +- node_modules/encoding/package.json | 57 +- node_modules/fbjs/CHANGELOG.md | 28 + node_modules/fbjs/LICENSE | 41 +- node_modules/fbjs/PATENTS | 33 - node_modules/fbjs/flow/lib/dev.js | 8 +- node_modules/fbjs/index.js | 6 +- node_modules/fbjs/lib/CSSCore.js | 6 +- node_modules/fbjs/lib/CSSCore.js.flow | 6 +- node_modules/fbjs/lib/DataTransfer.js | 6 +- node_modules/fbjs/lib/DataTransfer.js.flow | 6 +- node_modules/fbjs/lib/Deferred.js | 12 +- node_modules/fbjs/lib/Deferred.js.flow | 12 +- node_modules/fbjs/lib/ErrorUtils.js | 6 +- node_modules/fbjs/lib/ErrorUtils.js.flow | 6 +- node_modules/fbjs/lib/EventListener.js | 13 +- node_modules/fbjs/lib/EventListener.js.flow | 13 +- node_modules/fbjs/lib/ExecutionEnvironment.js | 6 +- .../fbjs/lib/ExecutionEnvironment.js.flow | 6 +- node_modules/fbjs/lib/Keys.js | 6 +- node_modules/fbjs/lib/Keys.js.flow | 6 +- node_modules/fbjs/lib/Map.js | 6 +- node_modules/fbjs/lib/Map.js.flow | 6 +- node_modules/fbjs/lib/PhotosMimeType.js | 6 +- node_modules/fbjs/lib/PhotosMimeType.js.flow | 6 +- node_modules/fbjs/lib/Promise.js | 6 +- node_modules/fbjs/lib/Promise.js.flow | 6 +- node_modules/fbjs/lib/Promise.native.js | 7 +- node_modules/fbjs/lib/Promise.native.js.flow | 7 +- node_modules/fbjs/lib/PromiseMap.js | 6 +- node_modules/fbjs/lib/PromiseMap.js.flow | 6 +- node_modules/fbjs/lib/Scroll.js | 6 +- node_modules/fbjs/lib/Scroll.js.flow | 6 +- node_modules/fbjs/lib/Set.js | 6 +- node_modules/fbjs/lib/Set.js.flow | 6 +- node_modules/fbjs/lib/Style.js | 6 +- node_modules/fbjs/lib/Style.js.flow | 6 +- node_modules/fbjs/lib/TokenizeUtil.js | 6 +- node_modules/fbjs/lib/TokenizeUtil.js.flow | 6 +- node_modules/fbjs/lib/TouchEventUtils.js | 6 +- node_modules/fbjs/lib/TouchEventUtils.js.flow | 6 +- node_modules/fbjs/lib/URI.js | 6 +- node_modules/fbjs/lib/URI.js.flow | 6 +- node_modules/fbjs/lib/UnicodeBidi.js | 6 +- node_modules/fbjs/lib/UnicodeBidi.js.flow | 6 +- node_modules/fbjs/lib/UnicodeBidiDirection.js | 6 +- .../fbjs/lib/UnicodeBidiDirection.js.flow | 6 +- node_modules/fbjs/lib/UnicodeBidiService.js | 6 +- .../fbjs/lib/UnicodeBidiService.js.flow | 6 +- node_modules/fbjs/lib/UnicodeCJK.js | 6 +- node_modules/fbjs/lib/UnicodeCJK.js.flow | 6 +- node_modules/fbjs/lib/UnicodeHangulKorean.js | 6 +- .../fbjs/lib/UnicodeHangulKorean.js.flow | 6 +- node_modules/fbjs/lib/UnicodeUtils.js | 6 +- node_modules/fbjs/lib/UnicodeUtils.js.flow | 6 +- node_modules/fbjs/lib/UnicodeUtilsExtra.js | 6 +- .../fbjs/lib/UnicodeUtilsExtra.js.flow | 6 +- node_modules/fbjs/lib/UserAgent.js | 6 +- node_modules/fbjs/lib/UserAgent.js.flow | 6 +- node_modules/fbjs/lib/UserAgentData.js | 6 +- node_modules/fbjs/lib/UserAgentData.js.flow | 6 +- node_modules/fbjs/lib/VersionRange.js | 6 +- node_modules/fbjs/lib/VersionRange.js.flow | 6 +- node_modules/fbjs/lib/__mocks__/ErrorUtils.js | 6 +- node_modules/fbjs/lib/__mocks__/base62.js | 6 +- node_modules/fbjs/lib/__mocks__/crc32.js | 6 +- node_modules/fbjs/lib/__mocks__/fetch.js | 6 +- .../fbjs/lib/__mocks__/fetchWithRetries.js | 6 +- node_modules/fbjs/lib/__mocks__/nullthrows.js | 6 +- .../fbjs/lib/_shouldPolyfillES6Collection.js | 6 +- .../lib/_shouldPolyfillES6Collection.js.flow | 6 +- node_modules/fbjs/lib/areEqual.js | 6 +- node_modules/fbjs/lib/areEqual.js.flow | 6 +- node_modules/fbjs/lib/base62.js | 6 +- node_modules/fbjs/lib/base62.js.flow | 6 +- node_modules/fbjs/lib/camelize.js | 6 +- node_modules/fbjs/lib/camelize.js.flow | 6 +- node_modules/fbjs/lib/camelizeStyleName.js | 6 +- .../fbjs/lib/camelizeStyleName.js.flow | 6 +- node_modules/fbjs/lib/concatAllArray.js | 6 +- node_modules/fbjs/lib/concatAllArray.js.flow | 6 +- node_modules/fbjs/lib/containsNode.js | 6 +- node_modules/fbjs/lib/containsNode.js.flow | 6 +- node_modules/fbjs/lib/countDistinct.js | 6 +- node_modules/fbjs/lib/countDistinct.js.flow | 6 +- node_modules/fbjs/lib/crc32.js | 6 +- node_modules/fbjs/lib/crc32.js.flow | 6 +- node_modules/fbjs/lib/createArrayFromMixed.js | 6 +- .../fbjs/lib/createArrayFromMixed.js.flow | 6 +- .../fbjs/lib/createNodesFromMarkup.js | 6 +- .../fbjs/lib/createNodesFromMarkup.js.flow | 6 +- node_modules/fbjs/lib/cx.js | 6 +- node_modules/fbjs/lib/cx.js.flow | 6 +- node_modules/fbjs/lib/distinctArray.js | 6 +- node_modules/fbjs/lib/distinctArray.js.flow | 6 +- node_modules/fbjs/lib/emptyFunction.js | 6 +- node_modules/fbjs/lib/emptyFunction.js.flow | 6 +- node_modules/fbjs/lib/emptyObject.js | 6 +- node_modules/fbjs/lib/emptyObject.js.flow | 6 +- node_modules/fbjs/lib/enumerate.js | 6 +- node_modules/fbjs/lib/enumerate.js.flow | 6 +- node_modules/fbjs/lib/equalsIterable.js | 6 +- node_modules/fbjs/lib/equalsIterable.js.flow | 6 +- node_modules/fbjs/lib/equalsSet.js | 6 +- node_modules/fbjs/lib/equalsSet.js.flow | 6 +- node_modules/fbjs/lib/everyObject.js | 6 +- node_modules/fbjs/lib/everyObject.js.flow | 6 +- node_modules/fbjs/lib/everySet.js | 6 +- node_modules/fbjs/lib/everySet.js.flow | 6 +- node_modules/fbjs/lib/fetch.js | 6 +- node_modules/fbjs/lib/fetch.js.flow | 6 +- node_modules/fbjs/lib/fetchWithRetries.js | 6 +- .../fbjs/lib/fetchWithRetries.js.flow | 6 +- node_modules/fbjs/lib/filterObject.js | 6 +- node_modules/fbjs/lib/filterObject.js.flow | 6 +- node_modules/fbjs/lib/flatMapArray.js | 6 +- node_modules/fbjs/lib/flatMapArray.js.flow | 6 +- node_modules/fbjs/lib/flattenArray.js | 6 +- node_modules/fbjs/lib/flattenArray.js.flow | 6 +- node_modules/fbjs/lib/focusNode.js | 6 +- node_modules/fbjs/lib/focusNode.js.flow | 6 +- node_modules/fbjs/lib/forEachObject.js | 6 +- node_modules/fbjs/lib/forEachObject.js.flow | 6 +- node_modules/fbjs/lib/getActiveElement.js | 6 +- .../fbjs/lib/getActiveElement.js.flow | 6 +- .../fbjs/lib/getDocumentScrollElement.js | 9 +- .../fbjs/lib/getDocumentScrollElement.js.flow | 9 +- node_modules/fbjs/lib/getElementPosition.js | 6 +- .../fbjs/lib/getElementPosition.js.flow | 6 +- node_modules/fbjs/lib/getElementRect.js | 6 +- node_modules/fbjs/lib/getElementRect.js.flow | 6 +- node_modules/fbjs/lib/getMarkupWrap.js | 6 +- node_modules/fbjs/lib/getMarkupWrap.js.flow | 6 +- node_modules/fbjs/lib/getScrollPosition.js | 6 +- .../fbjs/lib/getScrollPosition.js.flow | 6 +- node_modules/fbjs/lib/getStyleProperty.js | 6 +- .../fbjs/lib/getStyleProperty.js.flow | 6 +- .../fbjs/lib/getUnboundedScrollPosition.js | 6 +- .../lib/getUnboundedScrollPosition.js.flow | 6 +- .../fbjs/lib/getViewportDimensions.js | 6 +- .../fbjs/lib/getViewportDimensions.js.flow | 6 +- node_modules/fbjs/lib/groupArray.js | 6 +- node_modules/fbjs/lib/groupArray.js.flow | 6 +- node_modules/fbjs/lib/hyphenate.js | 6 +- node_modules/fbjs/lib/hyphenate.js.flow | 6 +- node_modules/fbjs/lib/hyphenateStyleName.js | 6 +- .../fbjs/lib/hyphenateStyleName.js.flow | 6 +- node_modules/fbjs/lib/invariant.js | 6 +- node_modules/fbjs/lib/invariant.js.flow | 6 +- node_modules/fbjs/lib/isEmpty.js | 6 +- node_modules/fbjs/lib/isEmpty.js.flow | 6 +- node_modules/fbjs/lib/isNode.js | 6 +- node_modules/fbjs/lib/isNode.js.flow | 6 +- node_modules/fbjs/lib/isTextNode.js | 6 +- node_modules/fbjs/lib/isTextNode.js.flow | 6 +- node_modules/fbjs/lib/joinClasses.js | 6 +- node_modules/fbjs/lib/joinClasses.js.flow | 6 +- node_modules/fbjs/lib/keyMirror.js | 6 +- node_modules/fbjs/lib/keyMirror.js.flow | 6 +- node_modules/fbjs/lib/keyMirrorRecursive.js | 6 +- .../fbjs/lib/keyMirrorRecursive.js.flow | 6 +- node_modules/fbjs/lib/keyOf.js | 6 +- node_modules/fbjs/lib/keyOf.js.flow | 6 +- node_modules/fbjs/lib/mapObject.js | 6 +- node_modules/fbjs/lib/mapObject.js.flow | 6 +- node_modules/fbjs/lib/maxBy.js | 6 +- node_modules/fbjs/lib/maxBy.js.flow | 6 +- node_modules/fbjs/lib/memoizeStringOnly.js | 6 +- .../fbjs/lib/memoizeStringOnly.js.flow | 6 +- node_modules/fbjs/lib/minBy.js | 6 +- node_modules/fbjs/lib/minBy.js.flow | 6 +- node_modules/fbjs/lib/monitorCodeUse.js | 8 +- node_modules/fbjs/lib/monitorCodeUse.js.flow | 8 +- .../fbjs/lib/nativeRequestAnimationFrame.js | 6 +- .../lib/nativeRequestAnimationFrame.js.flow | 6 +- node_modules/fbjs/lib/nullthrows.js | 6 +- node_modules/fbjs/lib/nullthrows.js.flow | 6 +- node_modules/fbjs/lib/partitionArray.js | 6 +- node_modules/fbjs/lib/partitionArray.js.flow | 6 +- node_modules/fbjs/lib/performance.js | 6 +- node_modules/fbjs/lib/performance.js.flow | 6 +- node_modules/fbjs/lib/performanceNow.js | 6 +- node_modules/fbjs/lib/performanceNow.js.flow | 6 +- node_modules/fbjs/lib/removeFromArray.js | 6 +- node_modules/fbjs/lib/removeFromArray.js.flow | 6 +- .../fbjs/lib/requestAnimationFrame.js | 8 +- .../fbjs/lib/requestAnimationFrame.js.flow | 8 +- node_modules/fbjs/lib/resolveImmediate.js | 6 +- .../fbjs/lib/resolveImmediate.js.flow | 6 +- node_modules/fbjs/lib/setImmediate.js | 6 +- node_modules/fbjs/lib/setImmediate.js.flow | 6 +- node_modules/fbjs/lib/shallowEqual.js | 6 +- node_modules/fbjs/lib/shallowEqual.js.flow | 6 +- node_modules/fbjs/lib/someObject.js | 6 +- node_modules/fbjs/lib/someObject.js.flow | 6 +- node_modules/fbjs/lib/someSet.js | 6 +- node_modules/fbjs/lib/someSet.js.flow | 6 +- node_modules/fbjs/lib/sprintf.js | 6 +- node_modules/fbjs/lib/sprintf.js.flow | 6 +- node_modules/fbjs/lib/warning.js | 80 +- node_modules/fbjs/lib/warning.js.flow | 8 +- .../fbjs/lib/xhrSimpleDataSerializer.js | 6 +- .../fbjs/lib/xhrSimpleDataSerializer.js.flow | 6 +- node_modules/fbjs/package.json | 98 +- node_modules/iconv-lite/.travis.yml | 1 + node_modules/iconv-lite/Changelog.md | 12 + node_modules/iconv-lite/encodings/internal.js | 4 +- .../encodings/sbcs-data-generated.js | 8 +- .../iconv-lite/encodings/sbcs-data.js | 2 - node_modules/iconv-lite/lib/index.js | 2 +- node_modules/iconv-lite/package.json | 68 +- node_modules/is-stream/package.json | 62 +- node_modules/isomorphic-fetch/package.json | 61 +- node_modules/js-tokens/CHANGELOG.md | 5 + node_modules/js-tokens/README.md | 4 +- node_modules/js-tokens/package.json | 74 +- node_modules/loose-envify/package.json | 61 +- node_modules/node-fetch/CHANGELOG.md | 8 + node_modules/node-fetch/lib/fetch-error.js | 5 +- node_modules/node-fetch/lib/headers.js | 2 +- node_modules/node-fetch/lib/index.js | 171 +- node_modules/node-fetch/package.json | 72 +- node_modules/node-fetch/test/test.js | 4 +- node_modules/object-assign/package.json | 71 +- node_modules/promise/Readme.md | 4 +- node_modules/promise/domains/core.js | 82 +- .../promise/domains/es6-extensions.js | 12 +- .../promise/domains/node-extensions.js | 6 +- .../promise/domains/rejection-tracking.js | 28 +- node_modules/promise/domains/synchronous.js | 20 +- node_modules/promise/index.d.ts | 256 + node_modules/promise/lib/core.js | 82 +- node_modules/promise/lib/es6-extensions.js | 12 +- node_modules/promise/lib/node-extensions.js | 6 +- .../promise/lib/rejection-tracking.js | 28 +- node_modules/promise/lib/synchronous.js | 20 +- node_modules/promise/package.json | 67 +- node_modules/promise/setimmediate/core.js | 82 +- .../promise/setimmediate/es6-extensions.js | 12 +- .../promise/setimmediate/node-extensions.js | 6 +- .../setimmediate/rejection-tracking.js | 28 +- .../promise/setimmediate/synchronous.js | 20 +- node_modules/promise/src/core.js | 6 +- node_modules/promise/src/node-extensions.js | 6 +- node_modules/prop-types/CHANGELOG.md | 5 + node_modules/prop-types/LICENSE | 42 +- node_modules/prop-types/PATENTS | 33 - node_modules/prop-types/README.md | 32 +- node_modules/prop-types/checkPropTypes.js | 10 +- node_modules/prop-types/factory.js | 8 +- .../prop-types/factoryWithThrowingShims.js | 11 +- .../prop-types/factoryWithTypeCheckers.js | 44 +- node_modules/prop-types/index.js | 8 +- .../prop-types/lib/ReactPropTypesSecret.js | 8 +- node_modules/prop-types/package.json | 77 +- node_modules/prop-types/prop-types.js | 263 +- node_modules/prop-types/prop-types.min.js | 2 +- node_modules/react-dom/LICENSE | 42 +- node_modules/react-dom/PATENTS | 33 - .../react-dom-server.browser.development.js | 2544 +++ ...react-dom-server.browser.production.min.js | 42 + .../cjs/react-dom-server.node.development.js | 2590 +++ .../react-dom-server.node.production.min.js | 44 + .../cjs/react-dom-test-utils.development.js | 1065 + .../react-dom-test-utils.production.min.js | 33 + ...nstable-native-dependencies.development.js | 1584 ++ ...able-native-dependencies.production.min.js | 35 + .../react-dom/cjs/react-dom.development.js | 15394 +++++++++++++ .../react-dom/cjs/react-dom.production.min.js | 229 + .../react-dom/dist/react-dom-server.js | 16871 -------------- .../react-dom/dist/react-dom-server.min.js | 15 - node_modules/react-dom/dist/react-dom.js | 18939 ---------------- node_modules/react-dom/dist/react-dom.min.js | 16 - node_modules/react-dom/index.js | 37 +- .../react-dom/lib/ARIADOMPropertyConfig.js | 73 - node_modules/react-dom/lib/AutoFocusUtils.js | 23 - .../react-dom/lib/BeforeInputEventPlugin.js | 384 - node_modules/react-dom/lib/CSSProperty.js | 147 - .../react-dom/lib/CSSPropertyOperations.js | 208 - node_modules/react-dom/lib/CallbackQueue.js | 118 - .../react-dom/lib/ChangeEventPlugin.js | 345 - .../react-dom/lib/DOMChildrenOperations.js | 224 - node_modules/react-dom/lib/DOMLazyTree.js | 117 - node_modules/react-dom/lib/DOMNamespaces.js | 19 - node_modules/react-dom/lib/DOMProperty.js | 209 - .../react-dom/lib/DOMPropertyOperations.js | 236 - node_modules/react-dom/lib/Danger.js | 47 - .../react-dom/lib/DefaultEventPluginOrder.js | 25 - .../react-dom/lib/EnterLeaveEventPlugin.js | 99 - node_modules/react-dom/lib/EventConstants.js | 91 - node_modules/react-dom/lib/EventPluginHub.js | 277 - .../react-dom/lib/EventPluginRegistry.js | 254 - .../react-dom/lib/EventPluginUtils.js | 225 - .../react-dom/lib/EventPropagators.js | 133 - .../react-dom/lib/FallbackCompositionState.js | 94 - .../react-dom/lib/HTMLDOMPropertyConfig.js | 235 - node_modules/react-dom/lib/KeyEscapeUtils.js | 58 - .../react-dom/lib/LinkedValueUtils.js | 137 - .../react-dom/lib/PluginModuleType.js | 12 - node_modules/react-dom/lib/PooledClass.js | 111 - .../react-dom/lib/ReactBrowserEventEmitter.js | 327 - node_modules/react-dom/lib/ReactChildFiber.js | 243 - .../react-dom/lib/ReactChildReconciler.js | 153 - .../lib/ReactComponentBrowserEnvironment.js | 29 - .../lib/ReactComponentEnvironment.js | 45 - .../lib/ReactComponentTreeTestUtils.js | 86 - .../react-dom/lib/ReactCompositeComponent.js | 901 - node_modules/react-dom/lib/ReactCoroutine.js | 80 - node_modules/react-dom/lib/ReactDOM.js | 110 - .../react-dom/lib/ReactDOMComponent.js | 1000 - .../react-dom/lib/ReactDOMComponentFlags.js | 17 - .../react-dom/lib/ReactDOMComponentTree.js | 194 - .../react-dom/lib/ReactDOMContainerInfo.js | 32 - .../react-dom/lib/ReactDOMEmptyComponent.js | 59 - .../react-dom/lib/ReactDOMFeatureFlags.js | 18 - node_modules/react-dom/lib/ReactDOMFiber.js | 97 - .../react-dom/lib/ReactDOMIDOperations.js | 33 - node_modules/react-dom/lib/ReactDOMInput.js | 284 - .../react-dom/lib/ReactDOMInvalidARIAHook.js | 92 - .../lib/ReactDOMNullInputValuePropHook.js | 42 - node_modules/react-dom/lib/ReactDOMOption.js | 122 - node_modules/react-dom/lib/ReactDOMSelect.js | 199 - .../react-dom/lib/ReactDOMSelection.js | 211 - node_modules/react-dom/lib/ReactDOMServer.js | 25 - .../react-dom/lib/ReactDOMServerUMDEntry.js | 15 - .../react-dom/lib/ReactDOMTextComponent.js | 163 - .../react-dom/lib/ReactDOMTextarea.js | 159 - .../react-dom/lib/ReactDOMTreeTraversal.js | 135 - .../react-dom/lib/ReactDOMUMDEntry.js | 33 - .../lib/ReactDOMUnknownPropertyHook.js | 111 - node_modules/react-dom/lib/ReactDebugTool.js | 358 - .../lib/ReactDefaultBatchingStrategy.js | 67 - .../react-dom/lib/ReactDefaultInjection.js | 85 - .../react-dom/lib/ReactElementSymbol.js | 19 - .../react-dom/lib/ReactEmptyComponent.js | 29 - node_modules/react-dom/lib/ReactErrorUtils.js | 75 - .../react-dom/lib/ReactEventEmitterMixin.js | 32 - .../react-dom/lib/ReactEventListener.js | 154 - .../react-dom/lib/ReactFeatureFlags.js | 21 - node_modules/react-dom/lib/ReactFiber.js | 190 - .../react-dom/lib/ReactFiberBeginWork.js | 380 - .../react-dom/lib/ReactFiberCommitWork.js | 78 - .../react-dom/lib/ReactFiberCompleteWork.js | 208 - .../react-dom/lib/ReactFiberReconciler.js | 64 - node_modules/react-dom/lib/ReactFiberRoot.js | 29 - .../react-dom/lib/ReactFiberScheduler.js | 331 - .../react-dom/lib/ReactFiberUpdateQueue.js | 77 - .../react-dom/lib/ReactHostComponent.js | 67 - .../lib/ReactHostOperationHistoryHook.js | 33 - node_modules/react-dom/lib/ReactInjection.js | 33 - .../react-dom/lib/ReactInputSelection.js | 123 - .../react-dom/lib/ReactInstanceMap.js | 47 - .../react-dom/lib/ReactInstanceType.js | 12 - .../react-dom/lib/ReactInstrumentation.js | 23 - .../lib/ReactInvalidSetStateWarningHook.js | 36 - .../react-dom/lib/ReactMarkupChecksum.js | 49 - node_modules/react-dom/lib/ReactMount.js | 537 - node_modules/react-dom/lib/ReactMultiChild.js | 449 - .../lib/ReactMultiChildUpdateTypes.js | 18 - node_modules/react-dom/lib/ReactNodeTypes.js | 39 - node_modules/react-dom/lib/ReactOwner.js | 93 - node_modules/react-dom/lib/ReactPerf.js | 500 - .../react-dom/lib/ReactPriorityLevel.js | 20 - .../lib/ReactPropTypeLocationNames.js | 24 - .../react-dom/lib/ReactPropTypeLocations.js | 12 - .../react-dom/lib/ReactPropTypesSecret.js | 16 - .../lib/ReactReconcileTransaction.js | 177 - node_modules/react-dom/lib/ReactReconciler.js | 167 - node_modules/react-dom/lib/ReactRef.js | 88 - .../react-dom/lib/ReactReifiedYield.js | 30 - .../lib/ReactServerBatchingStrategy.js | 21 - .../react-dom/lib/ReactServerRendering.js | 89 - .../lib/ReactServerRenderingTransaction.js | 89 - .../react-dom/lib/ReactServerUpdateQueue.js | 138 - .../react-dom/lib/ReactShallowRenderer.js | 150 - .../lib/ReactSimpleEmptyComponent.js | 36 - .../react-dom/lib/ReactSyntheticEventType.js | 14 - .../lib/ReactTestReconcileTransaction.js | 128 - node_modules/react-dom/lib/ReactTestUtils.js | 421 - node_modules/react-dom/lib/ReactTypeOfWork.js | 23 - node_modules/react-dom/lib/ReactTypes.js | 12 - .../react-dom/lib/ReactUpdateQueue.js | 235 - node_modules/react-dom/lib/ReactUpdates.js | 250 - node_modules/react-dom/lib/ReactVersion.js | 13 - .../react-dom/lib/ResponderEventPlugin.js | 507 - .../react-dom/lib/ResponderSyntheticEvent.js | 38 - .../lib/ResponderTouchHistoryStore.js | 183 - .../react-dom/lib/SVGDOMPropertyConfig.js | 301 - .../react-dom/lib/SelectEventPlugin.js | 190 - .../react-dom/lib/SimpleEventPlugin.js | 227 - .../react-dom/lib/SyntheticAnimationEvent.js | 38 - .../react-dom/lib/SyntheticClipboardEvent.js | 37 - .../lib/SyntheticCompositionEvent.js | 35 - .../react-dom/lib/SyntheticDragEvent.js | 35 - node_modules/react-dom/lib/SyntheticEvent.js | 267 - .../react-dom/lib/SyntheticFocusEvent.js | 35 - .../react-dom/lib/SyntheticInputEvent.js | 36 - .../react-dom/lib/SyntheticKeyboardEvent.js | 83 - .../react-dom/lib/SyntheticMouseEvent.js | 71 - .../react-dom/lib/SyntheticTouchEvent.js | 44 - .../react-dom/lib/SyntheticTransitionEvent.js | 38 - .../react-dom/lib/SyntheticUIEvent.js | 58 - .../react-dom/lib/SyntheticWheelEvent.js | 53 - node_modules/react-dom/lib/TapEventPlugin.js | 115 - .../react-dom/lib/TouchHistoryMath.js | 98 - node_modules/react-dom/lib/Transaction.js | 224 - node_modules/react-dom/lib/ViewportMetrics.js | 26 - node_modules/react-dom/lib/accumulate.js | 45 - node_modules/react-dom/lib/accumulateInto.js | 57 - node_modules/react-dom/lib/adler32.js | 43 - .../react-dom/lib/canDefineProperty.js | 25 - .../react-dom/lib/checkReactTypeSpec.js | 86 - .../lib/createMicrosoftUnsafeLocalFunction.js | 31 - .../react-dom/lib/dangerousStyleValue.js | 78 - node_modules/react-dom/lib/deprecated.js | 56 - .../lib/escapeTextContentForBrowser.js | 122 - node_modules/react-dom/lib/findDOMNode.js | 59 - node_modules/react-dom/lib/flattenChildren.js | 75 - .../react-dom/lib/forEachAccumulated.js | 30 - .../react-dom/lib/getEventCharCode.js | 49 - node_modules/react-dom/lib/getEventKey.js | 101 - .../react-dom/lib/getEventModifierState.js | 42 - node_modules/react-dom/lib/getEventTarget.js | 34 - .../lib/getHostComponentFromComposite.js | 29 - node_modules/react-dom/lib/getIteratorFn.js | 40 - .../lib/getNodeForCharacterOffset.js | 73 - node_modules/react-dom/lib/getTestDocument.js | 20 - .../react-dom/lib/getTextContentAccessor.js | 32 - .../lib/getVendorPrefixedEventName.js | 100 - .../lib/instantiateReactComponent.js | 128 - .../react-dom/lib/isEventSupported.js | 59 - .../react-dom/lib/isTextInputElement.js | 50 - .../lib/quoteAttributeValueForBrowser.js | 25 - .../react-dom/lib/reactComponentExpect.js | 216 - .../react-dom/lib/reactProdInvariant.js | 38 - .../lib/renderSubtreeIntoContainer.js | 15 - node_modules/react-dom/lib/setInnerHTML.js | 97 - node_modules/react-dom/lib/setTextContent.js | 51 - .../lib/shouldUpdateReactComponent.js | 41 - .../react-dom/lib/traverseAllChildren.js | 175 - .../react-dom/lib/validateDOMNesting.js | 376 - node_modules/react-dom/package.json | 134 +- node_modules/react-dom/server.browser.js | 7 + node_modules/react-dom/server.js | 2 +- node_modules/react-dom/server.node.js | 7 + node_modules/react-dom/test-utils.js | 6 +- .../react-dom-server.browser.development.js | 2940 +++ ...react-dom-server.browser.production.min.js | 34 + .../umd/react-dom-test-utils.development.js | 1247 + .../react-dom-test-utils.production.min.js | 29 + ...nstable-native-dependencies.development.js | 1734 ++ ...able-native-dependencies.production.min.js | 30 + .../react-dom/umd/react-dom.development.js | 16068 +++++++++++++ .../react-dom/umd/react-dom.production.min.js | 193 + .../react-dom/unstable-native-dependencies.js | 7 + node_modules/react/LICENSE | 42 +- node_modules/react/PATENTS | 33 - node_modules/react/README.md | 2 +- node_modules/react/cjs/react.development.js | 1357 ++ .../react/cjs/react.production.min.js | 21 + node_modules/react/dist/react-with-addons.js | 5646 ----- .../react/dist/react-with-addons.min.js | 13 - node_modules/react/dist/react.js | 3987 ---- node_modules/react/dist/react.min.js | 12 - node_modules/react/index.js | 7 + node_modules/react/lib/KeyEscapeUtils.js | 58 - node_modules/react/lib/LinkedStateMixin.js | 34 - node_modules/react/lib/PooledClass.js | 111 - node_modules/react/lib/React.js | 103 - .../react/lib/ReactAddonsDOMDependencies.js | 36 - .../lib/ReactAddonsDOMDependenciesUMDShim.js | 35 - .../react/lib/ReactCSSTransitionGroup.js | 106 - .../react/lib/ReactCSSTransitionGroupChild.js | 184 - node_modules/react/lib/ReactChildren.js | 190 - node_modules/react/lib/ReactClass.js | 722 - node_modules/react/lib/ReactComponent.js | 117 - .../react/lib/ReactComponentTreeDevtool.js | 14 - .../react/lib/ReactComponentTreeHook.js | 333 - .../lib/ReactComponentTreeHookUMDShim.js | 17 - .../lib/ReactComponentWithPureRenderMixin.js | 47 - node_modules/react/lib/ReactCurrentOwner.js | 30 - .../react/lib/ReactCurrentOwnerUMDShim.js | 17 - node_modules/react/lib/ReactDOMFactories.js | 169 - node_modules/react/lib/ReactElement.js | 340 - node_modules/react/lib/ReactElementSymbol.js | 19 - node_modules/react/lib/ReactElementType.js | 12 - .../react/lib/ReactElementValidator.js | 252 - node_modules/react/lib/ReactFragment.js | 68 - node_modules/react/lib/ReactLink.js | 70 - .../react/lib/ReactNoopUpdateQueue.js | 95 - .../react/lib/ReactPropTypeLocationNames.js | 24 - .../react/lib/ReactPropTypeLocations.js | 12 - node_modules/react/lib/ReactPropTypes.js | 18 - .../react/lib/ReactPropTypesSecret.js | 16 - node_modules/react/lib/ReactPureComponent.js | 41 - node_modules/react/lib/ReactStateSetters.js | 103 - .../react/lib/ReactTransitionChildMapping.js | 102 - .../react/lib/ReactTransitionEvents.js | 72 - .../react/lib/ReactTransitionGroup.js | 231 - node_modules/react/lib/ReactUMDEntry.js | 32 - node_modules/react/lib/ReactUMDShim.js | 15 - node_modules/react/lib/ReactVersion.js | 13 - node_modules/react/lib/ReactWithAddons.js | 52 - .../react/lib/ReactWithAddonsUMDEntry.js | 33 - node_modules/react/lib/canDefineProperty.js | 25 - node_modules/react/lib/checkReactTypeSpec.js | 86 - node_modules/react/lib/deprecated.js | 56 - node_modules/react/lib/flattenChildren.js | 75 - node_modules/react/lib/getIteratorFn.js | 40 - node_modules/react/lib/getNextDebugID.js | 20 - .../react/lib/getNextDebugIDUMDShim.js | 17 - node_modules/react/lib/onlyChild.js | 37 - node_modules/react/lib/reactProdInvariant.js | 38 - node_modules/react/lib/shallowCompare.js | 24 - node_modules/react/lib/sliceChildren.js | 33 - node_modules/react/lib/traverseAllChildren.js | 175 - node_modules/react/lib/update.js | 111 - node_modules/react/package.json | 135 +- node_modules/react/react.js | 3 - node_modules/react/umd/react.development.js | 1684 ++ .../react/umd/react.production.min.js | 21 + node_modules/setimmediate/package.json | 61 +- node_modules/ua-parser-js/bower.json | 2 +- .../ua-parser-js/dist/ua-parser.min.js | 5 +- .../ua-parser-js/dist/ua-parser.pack.js | 5 +- node_modules/ua-parser-js/package.js | 2 +- node_modules/ua-parser-js/package.json | 231 +- node_modules/ua-parser-js/readme.md | 84 +- node_modules/ua-parser-js/src/ua-parser.js | 323 +- .../ua-parser-js/test/browser-test.json | 150 +- .../ua-parser-js/test/device-test.json | 1016 +- node_modules/ua-parser-js/test/os-test.json | 9 + node_modules/ua-parser-js/test/test.js | 30 +- .../ua-parser-js/ua-parser-js.jquery.json | 32 - node_modules/whatwg-fetch/package.json | 66 +- package-lock.json | 151 + 545 files changed, 52986 insertions(+), 74132 deletions(-) delete mode 100644 node_modules/create-react-class/PATENTS delete mode 100644 node_modules/fbjs/PATENTS create mode 100644 node_modules/promise/index.d.ts delete mode 100644 node_modules/prop-types/PATENTS delete mode 100644 node_modules/react-dom/PATENTS create mode 100644 node_modules/react-dom/cjs/react-dom-server.browser.development.js create mode 100644 node_modules/react-dom/cjs/react-dom-server.browser.production.min.js create mode 100644 node_modules/react-dom/cjs/react-dom-server.node.development.js create mode 100644 node_modules/react-dom/cjs/react-dom-server.node.production.min.js create mode 100644 node_modules/react-dom/cjs/react-dom-test-utils.development.js create mode 100644 node_modules/react-dom/cjs/react-dom-test-utils.production.min.js create mode 100644 node_modules/react-dom/cjs/react-dom-unstable-native-dependencies.development.js create mode 100644 node_modules/react-dom/cjs/react-dom-unstable-native-dependencies.production.min.js create mode 100644 node_modules/react-dom/cjs/react-dom.development.js create mode 100644 node_modules/react-dom/cjs/react-dom.production.min.js delete mode 100644 node_modules/react-dom/dist/react-dom-server.js delete mode 100644 node_modules/react-dom/dist/react-dom-server.min.js delete mode 100644 node_modules/react-dom/dist/react-dom.js delete mode 100644 node_modules/react-dom/dist/react-dom.min.js delete mode 100644 node_modules/react-dom/lib/ARIADOMPropertyConfig.js delete mode 100644 node_modules/react-dom/lib/AutoFocusUtils.js delete mode 100644 node_modules/react-dom/lib/BeforeInputEventPlugin.js delete mode 100644 node_modules/react-dom/lib/CSSProperty.js delete mode 100644 node_modules/react-dom/lib/CSSPropertyOperations.js delete mode 100644 node_modules/react-dom/lib/CallbackQueue.js delete mode 100644 node_modules/react-dom/lib/ChangeEventPlugin.js delete mode 100644 node_modules/react-dom/lib/DOMChildrenOperations.js delete mode 100644 node_modules/react-dom/lib/DOMLazyTree.js delete mode 100644 node_modules/react-dom/lib/DOMNamespaces.js delete mode 100644 node_modules/react-dom/lib/DOMProperty.js delete mode 100644 node_modules/react-dom/lib/DOMPropertyOperations.js delete mode 100644 node_modules/react-dom/lib/Danger.js delete mode 100644 node_modules/react-dom/lib/DefaultEventPluginOrder.js delete mode 100644 node_modules/react-dom/lib/EnterLeaveEventPlugin.js delete mode 100644 node_modules/react-dom/lib/EventConstants.js delete mode 100644 node_modules/react-dom/lib/EventPluginHub.js delete mode 100644 node_modules/react-dom/lib/EventPluginRegistry.js delete mode 100644 node_modules/react-dom/lib/EventPluginUtils.js delete mode 100644 node_modules/react-dom/lib/EventPropagators.js delete mode 100644 node_modules/react-dom/lib/FallbackCompositionState.js delete mode 100644 node_modules/react-dom/lib/HTMLDOMPropertyConfig.js delete mode 100644 node_modules/react-dom/lib/KeyEscapeUtils.js delete mode 100644 node_modules/react-dom/lib/LinkedValueUtils.js delete mode 100644 node_modules/react-dom/lib/PluginModuleType.js delete mode 100644 node_modules/react-dom/lib/PooledClass.js delete mode 100644 node_modules/react-dom/lib/ReactBrowserEventEmitter.js delete mode 100644 node_modules/react-dom/lib/ReactChildFiber.js delete mode 100644 node_modules/react-dom/lib/ReactChildReconciler.js delete mode 100644 node_modules/react-dom/lib/ReactComponentBrowserEnvironment.js delete mode 100644 node_modules/react-dom/lib/ReactComponentEnvironment.js delete mode 100644 node_modules/react-dom/lib/ReactComponentTreeTestUtils.js delete mode 100644 node_modules/react-dom/lib/ReactCompositeComponent.js delete mode 100644 node_modules/react-dom/lib/ReactCoroutine.js delete mode 100644 node_modules/react-dom/lib/ReactDOM.js delete mode 100644 node_modules/react-dom/lib/ReactDOMComponent.js delete mode 100644 node_modules/react-dom/lib/ReactDOMComponentFlags.js delete mode 100644 node_modules/react-dom/lib/ReactDOMComponentTree.js delete mode 100644 node_modules/react-dom/lib/ReactDOMContainerInfo.js delete mode 100644 node_modules/react-dom/lib/ReactDOMEmptyComponent.js delete mode 100644 node_modules/react-dom/lib/ReactDOMFeatureFlags.js delete mode 100644 node_modules/react-dom/lib/ReactDOMFiber.js delete mode 100644 node_modules/react-dom/lib/ReactDOMIDOperations.js delete mode 100644 node_modules/react-dom/lib/ReactDOMInput.js delete mode 100644 node_modules/react-dom/lib/ReactDOMInvalidARIAHook.js delete mode 100644 node_modules/react-dom/lib/ReactDOMNullInputValuePropHook.js delete mode 100644 node_modules/react-dom/lib/ReactDOMOption.js delete mode 100644 node_modules/react-dom/lib/ReactDOMSelect.js delete mode 100644 node_modules/react-dom/lib/ReactDOMSelection.js delete mode 100644 node_modules/react-dom/lib/ReactDOMServer.js delete mode 100644 node_modules/react-dom/lib/ReactDOMServerUMDEntry.js delete mode 100644 node_modules/react-dom/lib/ReactDOMTextComponent.js delete mode 100644 node_modules/react-dom/lib/ReactDOMTextarea.js delete mode 100644 node_modules/react-dom/lib/ReactDOMTreeTraversal.js delete mode 100644 node_modules/react-dom/lib/ReactDOMUMDEntry.js delete mode 100644 node_modules/react-dom/lib/ReactDOMUnknownPropertyHook.js delete mode 100644 node_modules/react-dom/lib/ReactDebugTool.js delete mode 100644 node_modules/react-dom/lib/ReactDefaultBatchingStrategy.js delete mode 100644 node_modules/react-dom/lib/ReactDefaultInjection.js delete mode 100644 node_modules/react-dom/lib/ReactElementSymbol.js delete mode 100644 node_modules/react-dom/lib/ReactEmptyComponent.js delete mode 100644 node_modules/react-dom/lib/ReactErrorUtils.js delete mode 100644 node_modules/react-dom/lib/ReactEventEmitterMixin.js delete mode 100644 node_modules/react-dom/lib/ReactEventListener.js delete mode 100644 node_modules/react-dom/lib/ReactFeatureFlags.js delete mode 100644 node_modules/react-dom/lib/ReactFiber.js delete mode 100644 node_modules/react-dom/lib/ReactFiberBeginWork.js delete mode 100644 node_modules/react-dom/lib/ReactFiberCommitWork.js delete mode 100644 node_modules/react-dom/lib/ReactFiberCompleteWork.js delete mode 100644 node_modules/react-dom/lib/ReactFiberReconciler.js delete mode 100644 node_modules/react-dom/lib/ReactFiberRoot.js delete mode 100644 node_modules/react-dom/lib/ReactFiberScheduler.js delete mode 100644 node_modules/react-dom/lib/ReactFiberUpdateQueue.js delete mode 100644 node_modules/react-dom/lib/ReactHostComponent.js delete mode 100644 node_modules/react-dom/lib/ReactHostOperationHistoryHook.js delete mode 100644 node_modules/react-dom/lib/ReactInjection.js delete mode 100644 node_modules/react-dom/lib/ReactInputSelection.js delete mode 100644 node_modules/react-dom/lib/ReactInstanceMap.js delete mode 100644 node_modules/react-dom/lib/ReactInstanceType.js delete mode 100644 node_modules/react-dom/lib/ReactInstrumentation.js delete mode 100644 node_modules/react-dom/lib/ReactInvalidSetStateWarningHook.js delete mode 100644 node_modules/react-dom/lib/ReactMarkupChecksum.js delete mode 100644 node_modules/react-dom/lib/ReactMount.js delete mode 100644 node_modules/react-dom/lib/ReactMultiChild.js delete mode 100644 node_modules/react-dom/lib/ReactMultiChildUpdateTypes.js delete mode 100644 node_modules/react-dom/lib/ReactNodeTypes.js delete mode 100644 node_modules/react-dom/lib/ReactOwner.js delete mode 100644 node_modules/react-dom/lib/ReactPerf.js delete mode 100644 node_modules/react-dom/lib/ReactPriorityLevel.js delete mode 100644 node_modules/react-dom/lib/ReactPropTypeLocationNames.js delete mode 100644 node_modules/react-dom/lib/ReactPropTypeLocations.js delete mode 100644 node_modules/react-dom/lib/ReactPropTypesSecret.js delete mode 100644 node_modules/react-dom/lib/ReactReconcileTransaction.js delete mode 100644 node_modules/react-dom/lib/ReactReconciler.js delete mode 100644 node_modules/react-dom/lib/ReactRef.js delete mode 100644 node_modules/react-dom/lib/ReactReifiedYield.js delete mode 100644 node_modules/react-dom/lib/ReactServerBatchingStrategy.js delete mode 100644 node_modules/react-dom/lib/ReactServerRendering.js delete mode 100644 node_modules/react-dom/lib/ReactServerRenderingTransaction.js delete mode 100644 node_modules/react-dom/lib/ReactServerUpdateQueue.js delete mode 100644 node_modules/react-dom/lib/ReactShallowRenderer.js delete mode 100644 node_modules/react-dom/lib/ReactSimpleEmptyComponent.js delete mode 100644 node_modules/react-dom/lib/ReactSyntheticEventType.js delete mode 100644 node_modules/react-dom/lib/ReactTestReconcileTransaction.js delete mode 100644 node_modules/react-dom/lib/ReactTestUtils.js delete mode 100644 node_modules/react-dom/lib/ReactTypeOfWork.js delete mode 100644 node_modules/react-dom/lib/ReactTypes.js delete mode 100644 node_modules/react-dom/lib/ReactUpdateQueue.js delete mode 100644 node_modules/react-dom/lib/ReactUpdates.js delete mode 100644 node_modules/react-dom/lib/ReactVersion.js delete mode 100644 node_modules/react-dom/lib/ResponderEventPlugin.js delete mode 100644 node_modules/react-dom/lib/ResponderSyntheticEvent.js delete mode 100644 node_modules/react-dom/lib/ResponderTouchHistoryStore.js delete mode 100644 node_modules/react-dom/lib/SVGDOMPropertyConfig.js delete mode 100644 node_modules/react-dom/lib/SelectEventPlugin.js delete mode 100644 node_modules/react-dom/lib/SimpleEventPlugin.js delete mode 100644 node_modules/react-dom/lib/SyntheticAnimationEvent.js delete mode 100644 node_modules/react-dom/lib/SyntheticClipboardEvent.js delete mode 100644 node_modules/react-dom/lib/SyntheticCompositionEvent.js delete mode 100644 node_modules/react-dom/lib/SyntheticDragEvent.js delete mode 100644 node_modules/react-dom/lib/SyntheticEvent.js delete mode 100644 node_modules/react-dom/lib/SyntheticFocusEvent.js delete mode 100644 node_modules/react-dom/lib/SyntheticInputEvent.js delete mode 100644 node_modules/react-dom/lib/SyntheticKeyboardEvent.js delete mode 100644 node_modules/react-dom/lib/SyntheticMouseEvent.js delete mode 100644 node_modules/react-dom/lib/SyntheticTouchEvent.js delete mode 100644 node_modules/react-dom/lib/SyntheticTransitionEvent.js delete mode 100644 node_modules/react-dom/lib/SyntheticUIEvent.js delete mode 100644 node_modules/react-dom/lib/SyntheticWheelEvent.js delete mode 100644 node_modules/react-dom/lib/TapEventPlugin.js delete mode 100644 node_modules/react-dom/lib/TouchHistoryMath.js delete mode 100644 node_modules/react-dom/lib/Transaction.js delete mode 100644 node_modules/react-dom/lib/ViewportMetrics.js delete mode 100644 node_modules/react-dom/lib/accumulate.js delete mode 100644 node_modules/react-dom/lib/accumulateInto.js delete mode 100644 node_modules/react-dom/lib/adler32.js delete mode 100644 node_modules/react-dom/lib/canDefineProperty.js delete mode 100644 node_modules/react-dom/lib/checkReactTypeSpec.js delete mode 100644 node_modules/react-dom/lib/createMicrosoftUnsafeLocalFunction.js delete mode 100644 node_modules/react-dom/lib/dangerousStyleValue.js delete mode 100644 node_modules/react-dom/lib/deprecated.js delete mode 100644 node_modules/react-dom/lib/escapeTextContentForBrowser.js delete mode 100644 node_modules/react-dom/lib/findDOMNode.js delete mode 100644 node_modules/react-dom/lib/flattenChildren.js delete mode 100644 node_modules/react-dom/lib/forEachAccumulated.js delete mode 100644 node_modules/react-dom/lib/getEventCharCode.js delete mode 100644 node_modules/react-dom/lib/getEventKey.js delete mode 100644 node_modules/react-dom/lib/getEventModifierState.js delete mode 100644 node_modules/react-dom/lib/getEventTarget.js delete mode 100644 node_modules/react-dom/lib/getHostComponentFromComposite.js delete mode 100644 node_modules/react-dom/lib/getIteratorFn.js delete mode 100644 node_modules/react-dom/lib/getNodeForCharacterOffset.js delete mode 100644 node_modules/react-dom/lib/getTestDocument.js delete mode 100644 node_modules/react-dom/lib/getTextContentAccessor.js delete mode 100644 node_modules/react-dom/lib/getVendorPrefixedEventName.js delete mode 100644 node_modules/react-dom/lib/instantiateReactComponent.js delete mode 100644 node_modules/react-dom/lib/isEventSupported.js delete mode 100644 node_modules/react-dom/lib/isTextInputElement.js delete mode 100644 node_modules/react-dom/lib/quoteAttributeValueForBrowser.js delete mode 100644 node_modules/react-dom/lib/reactComponentExpect.js delete mode 100644 node_modules/react-dom/lib/reactProdInvariant.js delete mode 100644 node_modules/react-dom/lib/renderSubtreeIntoContainer.js delete mode 100644 node_modules/react-dom/lib/setInnerHTML.js delete mode 100644 node_modules/react-dom/lib/setTextContent.js delete mode 100644 node_modules/react-dom/lib/shouldUpdateReactComponent.js delete mode 100644 node_modules/react-dom/lib/traverseAllChildren.js delete mode 100644 node_modules/react-dom/lib/validateDOMNesting.js create mode 100644 node_modules/react-dom/server.browser.js create mode 100644 node_modules/react-dom/server.node.js create mode 100644 node_modules/react-dom/umd/react-dom-server.browser.development.js create mode 100644 node_modules/react-dom/umd/react-dom-server.browser.production.min.js create mode 100644 node_modules/react-dom/umd/react-dom-test-utils.development.js create mode 100644 node_modules/react-dom/umd/react-dom-test-utils.production.min.js create mode 100644 node_modules/react-dom/umd/react-dom-unstable-native-dependencies.development.js create mode 100644 node_modules/react-dom/umd/react-dom-unstable-native-dependencies.production.min.js create mode 100644 node_modules/react-dom/umd/react-dom.development.js create mode 100644 node_modules/react-dom/umd/react-dom.production.min.js create mode 100644 node_modules/react-dom/unstable-native-dependencies.js delete mode 100644 node_modules/react/PATENTS create mode 100644 node_modules/react/cjs/react.development.js create mode 100644 node_modules/react/cjs/react.production.min.js delete mode 100644 node_modules/react/dist/react-with-addons.js delete mode 100644 node_modules/react/dist/react-with-addons.min.js delete mode 100644 node_modules/react/dist/react.js delete mode 100644 node_modules/react/dist/react.min.js create mode 100644 node_modules/react/index.js delete mode 100644 node_modules/react/lib/KeyEscapeUtils.js delete mode 100644 node_modules/react/lib/LinkedStateMixin.js delete mode 100644 node_modules/react/lib/PooledClass.js delete mode 100644 node_modules/react/lib/React.js delete mode 100644 node_modules/react/lib/ReactAddonsDOMDependencies.js delete mode 100644 node_modules/react/lib/ReactAddonsDOMDependenciesUMDShim.js delete mode 100644 node_modules/react/lib/ReactCSSTransitionGroup.js delete mode 100644 node_modules/react/lib/ReactCSSTransitionGroupChild.js delete mode 100644 node_modules/react/lib/ReactChildren.js delete mode 100644 node_modules/react/lib/ReactClass.js delete mode 100644 node_modules/react/lib/ReactComponent.js delete mode 100644 node_modules/react/lib/ReactComponentTreeDevtool.js delete mode 100644 node_modules/react/lib/ReactComponentTreeHook.js delete mode 100644 node_modules/react/lib/ReactComponentTreeHookUMDShim.js delete mode 100644 node_modules/react/lib/ReactComponentWithPureRenderMixin.js delete mode 100644 node_modules/react/lib/ReactCurrentOwner.js delete mode 100644 node_modules/react/lib/ReactCurrentOwnerUMDShim.js delete mode 100644 node_modules/react/lib/ReactDOMFactories.js delete mode 100644 node_modules/react/lib/ReactElement.js delete mode 100644 node_modules/react/lib/ReactElementSymbol.js delete mode 100644 node_modules/react/lib/ReactElementType.js delete mode 100644 node_modules/react/lib/ReactElementValidator.js delete mode 100644 node_modules/react/lib/ReactFragment.js delete mode 100644 node_modules/react/lib/ReactLink.js delete mode 100644 node_modules/react/lib/ReactNoopUpdateQueue.js delete mode 100644 node_modules/react/lib/ReactPropTypeLocationNames.js delete mode 100644 node_modules/react/lib/ReactPropTypeLocations.js delete mode 100644 node_modules/react/lib/ReactPropTypes.js delete mode 100644 node_modules/react/lib/ReactPropTypesSecret.js delete mode 100644 node_modules/react/lib/ReactPureComponent.js delete mode 100644 node_modules/react/lib/ReactStateSetters.js delete mode 100644 node_modules/react/lib/ReactTransitionChildMapping.js delete mode 100644 node_modules/react/lib/ReactTransitionEvents.js delete mode 100644 node_modules/react/lib/ReactTransitionGroup.js delete mode 100644 node_modules/react/lib/ReactUMDEntry.js delete mode 100644 node_modules/react/lib/ReactUMDShim.js delete mode 100644 node_modules/react/lib/ReactVersion.js delete mode 100644 node_modules/react/lib/ReactWithAddons.js delete mode 100644 node_modules/react/lib/ReactWithAddonsUMDEntry.js delete mode 100644 node_modules/react/lib/canDefineProperty.js delete mode 100644 node_modules/react/lib/checkReactTypeSpec.js delete mode 100644 node_modules/react/lib/deprecated.js delete mode 100644 node_modules/react/lib/flattenChildren.js delete mode 100644 node_modules/react/lib/getIteratorFn.js delete mode 100644 node_modules/react/lib/getNextDebugID.js delete mode 100644 node_modules/react/lib/getNextDebugIDUMDShim.js delete mode 100644 node_modules/react/lib/onlyChild.js delete mode 100644 node_modules/react/lib/reactProdInvariant.js delete mode 100644 node_modules/react/lib/shallowCompare.js delete mode 100644 node_modules/react/lib/sliceChildren.js delete mode 100644 node_modules/react/lib/traverseAllChildren.js delete mode 100644 node_modules/react/lib/update.js delete mode 100644 node_modules/react/react.js create mode 100644 node_modules/react/umd/react.development.js create mode 100644 node_modules/react/umd/react.production.min.js mode change 100644 => 100755 node_modules/ua-parser-js/src/ua-parser.js delete mode 100644 node_modules/ua-parser-js/ua-parser-js.jquery.json create mode 100644 package-lock.json diff --git a/node_modules/asap/CHANGES.md b/node_modules/asap/CHANGES.md index e9ffa462..f105b919 100644 --- a/node_modules/asap/CHANGES.md +++ b/node_modules/asap/CHANGES.md @@ -1,4 +1,10 @@ +## 2.0.6 + +Version 2.0.4 adds support for React Native by clarifying in package.json that +the browser environment does not support Node.js domains. +Why this is necessary, we leave as an exercise for the user. + ## 2.0.3 Version 2.0.3 fixes a bug when adjusting the capacity of the task queue. diff --git a/node_modules/asap/package.json b/node_modules/asap/package.json index 9fe1a892..ecd96b88 100644 --- a/node_modules/asap/package.json +++ b/node_modules/asap/package.json @@ -1,50 +1,32 @@ { "_args": [ [ - { - "raw": "asap@~2.0.3", - "scope": null, - "escapedName": "asap", - "name": "asap", - "rawSpec": "~2.0.3", - "spec": ">=2.0.3 <2.1.0", - "type": "range" - }, - "/Users/Michal/Desktop/dev/react-slider/node_modules/promise" + "asap@2.0.6", + "/Users/Michal/Desktop/dev/react-slider" ] ], - "_from": "asap@>=2.0.3 <2.1.0", - "_id": "asap@2.0.5", - "_inCache": true, + "_from": "asap@2.0.6", + "_id": "asap@2.0.6", + "_inBundle": false, + "_integrity": "sha1-5QNHYR1+aQlDIIu9r+vLwvuGbUY=", "_location": "/asap", - "_nodeVersion": "0.10.32", - "_npmOperationalInternal": { - "host": "packages-12-west.internal.npmjs.com", - "tmp": "tmp/asap-2.0.5.tgz_1474846549990_0.794441896257922" - }, - "_npmUser": { - "name": "kriskowal", - "email": "kris.kowal@cixar.com" - }, - "_npmVersion": "2.14.7", "_phantomChildren": {}, "_requested": { - "raw": "asap@~2.0.3", - "scope": null, - "escapedName": "asap", + "type": "version", + "registry": true, + "raw": "asap@2.0.6", "name": "asap", - "rawSpec": "~2.0.3", - "spec": ">=2.0.3 <2.1.0", - "type": "range" + "escapedName": "asap", + "rawSpec": "2.0.6", + "saveSpec": null, + "fetchSpec": "2.0.6" }, "_requiredBy": [ "/promise" ], - "_resolved": "https://registry.npmjs.org/asap/-/asap-2.0.5.tgz", - "_shasum": "522765b50c3510490e52d7dcfe085ef9ba96958f", - "_shrinkwrap": null, - "_spec": "asap@~2.0.3", - "_where": "/Users/Michal/Desktop/dev/react-slider/node_modules/promise", + "_resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", + "_spec": "2.0.6", + "_where": "/Users/Michal/Desktop/dev/react-slider", "browser": { "./asap": "./browser-asap.js", "./asap.js": "./browser-asap.js", @@ -55,7 +37,6 @@ "bugs": { "url": "https://github.com/kriskowal/asap/issues" }, - "dependencies": {}, "description": "High-priority task queue for Node.js and browsers", "devDependencies": { "benchmark": "^1.0.0", @@ -70,18 +51,12 @@ "wd": "^0.2.21", "weak-map": "^1.0.5" }, - "directories": {}, - "dist": { - "shasum": "522765b50c3510490e52d7dcfe085ef9ba96958f", - "tarball": "https://registry.npmjs.org/asap/-/asap-2.0.5.tgz" - }, "files": [ "raw.js", "asap.js", "browser-raw.js", "browser-asap.js" ], - "gitHead": "e7f3d29eed4967ecfcaddbfc9542e2ee12b76227", "homepage": "https://github.com/kriskowal/asap#readme", "keywords": [ "event", @@ -90,20 +65,10 @@ ], "license": "MIT", "main": "./asap.js", - "maintainers": [ - { - "name": "kriskowal", - "email": "kris.kowal@cixar.com" - }, - { - "name": "forbeslindesay", - "email": "forbes@lindesay.co.uk" - } - ], "name": "asap", - "optionalDependencies": {}, - "readme": "# ASAP\n\n[![Build Status](https://travis-ci.org/kriskowal/asap.png?branch=master)](https://travis-ci.org/kriskowal/asap)\n\nPromise and asynchronous observer libraries, as well as hand-rolled callback\nprograms and libraries, often need a mechanism to postpone the execution of a\ncallback until the next available event.\n(See [Designing API’s for Asynchrony][Zalgo].)\nThe `asap` function executes a task **as soon as possible** but not before it\nreturns, waiting only for the completion of the current event and previously\nscheduled tasks.\n\n```javascript\nasap(function () {\n // ...\n});\n```\n\n[Zalgo]: http://blog.izs.me/post/59142742143/designing-apis-for-asynchrony\n\nThis CommonJS package provides an `asap` module that exports a function that\nexecutes a task function *as soon as possible*.\n\nASAP strives to schedule events to occur before yielding for IO, reflow,\nor redrawing.\nEach event receives an independent stack, with only platform code in parent\nframes and the events run in the order they are scheduled.\n\nASAP provides a fast event queue that will execute tasks until it is\nempty before yielding to the JavaScript engine's underlying event-loop.\nWhen a task gets added to a previously empty event queue, ASAP schedules a flush\nevent, preferring for that event to occur before the JavaScript engine has an\nopportunity to perform IO tasks or rendering, thus making the first task and\nsubsequent tasks semantically indistinguishable.\nASAP uses a variety of techniques to preserve this invariant on different\nversions of browsers and Node.js.\n\nBy design, ASAP prevents input events from being handled until the task\nqueue is empty.\nIf the process is busy enough, this may cause incoming connection requests to be\ndropped, and may cause existing connections to inform the sender to reduce the\ntransmission rate or stall.\nASAP allows this on the theory that, if there is enough work to do, there is no\nsense in looking for trouble.\nAs a consequence, ASAP can interfere with smooth animation.\nIf your task should be tied to the rendering loop, consider using\n`requestAnimationFrame` instead.\nA long sequence of tasks can also effect the long running script dialog.\nIf this is a problem, you may be able to use ASAP’s cousin `setImmediate` to\nbreak long processes into shorter intervals and periodically allow the browser\nto breathe.\n`setImmediate` will yield for IO, reflow, and repaint events.\nIt also returns a handler and can be canceled.\nFor a `setImmediate` shim, consider [YuzuJS setImmediate][setImmediate].\n\n[setImmediate]: https://github.com/YuzuJS/setImmediate\n\nTake care.\nASAP can sustain infinite recursive calls without warning.\nIt will not halt from a stack overflow, and it will not consume unbounded\nmemory.\nThis is behaviorally equivalent to an infinite loop.\nJust as with infinite loops, you can monitor a Node.js process for this behavior\nwith a heart-beat signal.\nAs with infinite loops, a very small amount of caution goes a long way to\navoiding problems.\n\n```javascript\nfunction loop() {\n asap(loop);\n}\nloop();\n```\n\nIn browsers, if a task throws an exception, it will not interrupt the flushing\nof high-priority tasks.\nThe exception will be postponed to a later, low-priority event to avoid\nslow-downs.\nIn Node.js, if a task throws an exception, ASAP will resume flushing only if—and\nonly after—the error is handled by `domain.on(\"error\")` or\n`process.on(\"uncaughtException\")`.\n\n## Raw ASAP\n\nChecking for exceptions comes at a cost.\nThe package also provides an `asap/raw` module that exports the underlying\nimplementation which is faster but stalls if a task throws an exception.\nThis internal version of the ASAP function does not check for errors.\nIf a task does throw an error, it will stall the event queue unless you manually\ncall `rawAsap.requestFlush()` before throwing the error, or any time after.\n\nIn Node.js, `asap/raw` also runs all tasks outside any domain.\nIf you need a task to be bound to your domain, you will have to do it manually.\n\n```js\nif (process.domain) {\n task = process.domain.bind(task);\n}\nrawAsap(task);\n```\n\n## Tasks\n\nA task may be any object that implements `call()`.\nA function will suffice, but closures tend not to be reusable and can cause\ngarbage collector churn.\nBoth `asap` and `rawAsap` accept task objects to give you the option of\nrecycling task objects or using higher callable object abstractions.\nSee the `asap` source for an illustration.\n\n\n## Compatibility\n\nASAP is tested on Node.js v0.10 and in a broad spectrum of web browsers.\nThe following charts capture the browser test results for the most recent\nrelease.\nThe first chart shows test results for ASAP running in the main window context.\nThe second chart shows test results for ASAP running in a web worker context.\nTest results are inconclusive (grey) on browsers that do not support web\nworkers.\nThese data are captured automatically by [Continuous\nIntegration][].\n\n[Continuous Integration]: https://github.com/kriskowal/asap/blob/master/CONTRIBUTING.md\n\n![Browser Compatibility](http://kriskowal-asap.s3-website-us-west-2.amazonaws.com/train/integration-2/saucelabs-results-matrix.svg)\n\n![Compatibility in Web Workers](http://kriskowal-asap.s3-website-us-west-2.amazonaws.com/train/integration-2/saucelabs-worker-results-matrix.svg)\n\n## Caveats\n\nWhen a task is added to an empty event queue, it is not always possible to\nguarantee that the task queue will begin flushing immediately after the current\nevent.\nHowever, once the task queue begins flushing, it will not yield until the queue\nis empty, even if the queue grows while executing tasks.\n\nThe following browsers allow the use of [DOM mutation observers][] to access\nthe HTML [microtask queue][], and thus begin flushing ASAP's task queue\nimmediately at the end of the current event loop turn, before any rendering or\nIO:\n\n[microtask queue]: http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#microtask-queue\n[DOM mutation observers]: http://dom.spec.whatwg.org/#mutation-observers\n\n- Android 4–4.3\n- Chrome 26–34\n- Firefox 14–29\n- Internet Explorer 11\n- iPad Safari 6–7.1\n- iPhone Safari 7–7.1\n- Safari 6–7\n\nIn the absense of mutation observers, there are a few browsers, and situations\nlike web workers in some of the above browsers, where [message channels][]\nwould be a useful way to avoid falling back to timers.\nMessage channels give direct access to the HTML [task queue][], so the ASAP\ntask queue would flush after any already queued rendering and IO tasks, but\nwithout having the minimum delay imposed by timers.\nHowever, among these browsers, Internet Explorer 10 and Safari do not reliably\ndispatch messages, so they are not worth the trouble to implement.\n\n[message channels]: http://www.whatwg.org/specs/web-apps/current-work/multipage/web-messaging.html#message-channels\n[task queue]: http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#concept-task\n\n- Internet Explorer 10\n- Safair 5.0-1\n- Opera 11-12\n\nIn the absense of mutation observers, these browsers and the following browsers\nall fall back to using `setTimeout` and `setInterval` to ensure that a `flush`\noccurs.\nThe implementation uses both and cancels whatever handler loses the race, since\n`setTimeout` tends to occasionally skip tasks in unisolated circumstances.\nTimers generally delay the flushing of ASAP's task queue for four milliseconds.\n\n- Firefox 3–13\n- Internet Explorer 6–10\n- iPad Safari 4.3\n- Lynx 2.8.7\n\n\n## Heritage\n\nASAP has been factored out of the [Q][] asynchronous promise library.\nIt originally had a naïve implementation in terms of `setTimeout`, but\n[Malte Ubl][NonBlocking] provided an insight that `postMessage` might be\nuseful for creating a high-priority, no-delay event dispatch hack.\nSince then, Internet Explorer proposed and implemented `setImmediate`.\nRobert Katić began contributing to Q by measuring the performance of\nthe internal implementation of `asap`, paying particular attention to\nerror recovery.\nDomenic, Robert, and Kris Kowal collectively settled on the current strategy of\nunrolling the high-priority event queue internally regardless of what strategy\nwe used to dispatch the potentially lower-priority flush event.\nDomenic went on to make ASAP cooperate with Node.js domains.\n\n[Q]: https://github.com/kriskowal/q\n[NonBlocking]: http://www.nonblocking.io/2011/06/windownexttick.html\n\nFor further reading, Nicholas Zakas provided a thorough article on [The\nCase for setImmediate][NCZ].\n\n[NCZ]: http://www.nczonline.net/blog/2013/07/09/the-case-for-setimmediate/\n\nEmber’s RSVP promise implementation later [adopted][RSVP ASAP] the name ASAP but\nfurther developed the implentation.\nParticularly, The `MessagePort` implementation was abandoned due to interaction\n[problems with Mobile Internet Explorer][IE Problems] in favor of an\nimplementation backed on the newer and more reliable DOM `MutationObserver`\ninterface.\nThese changes were back-ported into this library.\n\n[IE Problems]: https://github.com/cujojs/when/issues/197\n[RSVP ASAP]: https://github.com/tildeio/rsvp.js/blob/cddf7232546a9cf858524b75cde6f9edf72620a7/lib/rsvp/asap.js\n\nIn addition, ASAP factored into `asap` and `asap/raw`, such that `asap` remained\nexception-safe, but `asap/raw` provided a tight kernel that could be used for\ntasks that guaranteed that they would not throw exceptions.\nThis core is useful for promise implementations that capture thrown errors in\nrejected promises and do not need a second safety net.\nAt the same time, the exception handling in `asap` was factored into separate\nimplementations for Node.js and browsers, using the the [Browserify][Browser\nConfig] `browser` property in `package.json` to instruct browser module loaders\nand bundlers, including [Browserify][], [Mr][], and [Mop][], to use the\nbrowser-only implementation.\n\n[Browser Config]: https://gist.github.com/defunctzombie/4339901\n[Browserify]: https://github.com/substack/node-browserify\n[Mr]: https://github.com/montagejs/mr\n[Mop]: https://github.com/montagejs/mop\n\n## License\n\nCopyright 2009-2014 by Contributors\nMIT License (enclosed)\n\n", - "readmeFilename": "README.md", + "react-native": { + "domain": false + }, "repository": { "type": "git", "url": "git+https://github.com/kriskowal/asap.git" @@ -121,5 +86,5 @@ "test-saucelabs-worker-all": "node scripts/saucelabs-worker-test.js scripts/saucelabs-all-configurations.json", "test-travis": "npm run lint && npm run test-node && npm run test-saucelabs && npm run test-saucelabs-worker" }, - "version": "2.0.5" + "version": "2.0.6" } diff --git a/node_modules/core-js/package.json b/node_modules/core-js/package.json index ee0b1fad..8f66a3b7 100644 --- a/node_modules/core-js/package.json +++ b/node_modules/core-js/package.json @@ -1,54 +1,35 @@ { "_args": [ [ - { - "raw": "core-js@^1.0.0", - "scope": null, - "escapedName": "core-js", - "name": "core-js", - "rawSpec": "^1.0.0", - "spec": ">=1.0.0 <2.0.0", - "type": "range" - }, - "/Users/Michal/Desktop/dev/react-slider/node_modules/fbjs" + "core-js@1.2.7", + "/Users/Michal/Desktop/dev/react-slider" ] ], - "_from": "core-js@>=1.0.0 <2.0.0", + "_from": "core-js@1.2.7", "_id": "core-js@1.2.7", - "_inCache": true, + "_inBundle": false, + "_integrity": "sha1-ZSKUwUZR2yj6k70tX/KYOk8IxjY=", "_location": "/core-js", - "_nodeVersion": "6.2.2", - "_npmOperationalInternal": { - "host": "packages-16-east.internal.npmjs.com", - "tmp": "tmp/core-js-1.2.7.tgz_1468790518791_0.19032412697561085" - }, - "_npmUser": { - "name": "zloirock", - "email": "zloirock@zloirock.ru" - }, - "_npmVersion": "3.9.5", "_phantomChildren": {}, "_requested": { - "raw": "core-js@^1.0.0", - "scope": null, - "escapedName": "core-js", + "type": "version", + "registry": true, + "raw": "core-js@1.2.7", "name": "core-js", - "rawSpec": "^1.0.0", - "spec": ">=1.0.0 <2.0.0", - "type": "range" + "escapedName": "core-js", + "rawSpec": "1.2.7", + "saveSpec": null, + "fetchSpec": "1.2.7" }, "_requiredBy": [ "/fbjs" ], "_resolved": "https://registry.npmjs.org/core-js/-/core-js-1.2.7.tgz", - "_shasum": "652294c14651db28fa93bd2d5ff2983a4f08c636", - "_shrinkwrap": null, - "_spec": "core-js@^1.0.0", - "_where": "/Users/Michal/Desktop/dev/react-slider/node_modules/fbjs", + "_spec": "1.2.7", + "_where": "/Users/Michal/Desktop/dev/react-slider", "bugs": { "url": "https://github.com/zloirock/core-js/issues" }, - "dependencies": {}, "description": "Standard library", "devDependencies": { "LiveScript": "1.3.x", @@ -72,12 +53,6 @@ "qunitjs": "1.23.x", "webpack": "1.12.x" }, - "directories": {}, - "dist": { - "shasum": "652294c14651db28fa93bd2d5ff2983a4f08c636", - "tarball": "https://registry.npmjs.org/core-js/-/core-js-1.2.7.tgz" - }, - "gitHead": "11a0a09335b8afca5b489d3a503093d6f1fedd42", "homepage": "https://github.com/zloirock/core-js#readme", "keywords": [ "ES5", @@ -101,15 +76,7 @@ ], "license": "MIT", "main": "index.js", - "maintainers": [ - { - "name": "zloirock", - "email": "zloirock@zloirock.ru" - } - ], "name": "core-js", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", "repository": { "type": "git", "url": "git+https://github.com/zloirock/core-js.git" diff --git a/node_modules/create-react-class/LICENSE.txt b/node_modules/create-react-class/LICENSE.txt index 91b8f6f7..188fb2b0 100644 --- a/node_modules/create-react-class/LICENSE.txt +++ b/node_modules/create-react-class/LICENSE.txt @@ -1,31 +1,21 @@ -BSD License - -For React software +MIT License Copyright (c) 2013-present, Facebook, Inc. -All rights reserved. - -Redistribution and use 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. +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: - * Neither the name Facebook nor the names of its contributors may be used to - endorse or promote products derived from this software without specific - prior written permission. +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. -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 HOLDER 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. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/node_modules/create-react-class/PATENTS b/node_modules/create-react-class/PATENTS deleted file mode 100644 index 9c9f8e87..00000000 --- a/node_modules/create-react-class/PATENTS +++ /dev/null @@ -1,33 +0,0 @@ -Additional Grant of Patent Rights Version 2 - -"Software" means the React software distributed by Facebook, Inc. - -Facebook, Inc. ("Facebook") hereby grants to each recipient of the Software -("you") a perpetual, worldwide, royalty-free, non-exclusive, irrevocable -(subject to the termination provision below) license under any Necessary -Claims, to make, have made, use, sell, offer to sell, import, and otherwise -transfer the Software. For avoidance of doubt, no license is granted under -Facebook's rights in any patent claims that are infringed by (i) modifications -to the Software made by you or any third party or (ii) the Software in -combination with any software or other technology. - -The license granted hereunder will terminate, automatically and without notice, -if you (or any of your subsidiaries, corporate affiliates or agents) initiate -directly or indirectly, or take a direct financial interest in, any Patent -Assertion: (i) against Facebook or any of its subsidiaries or corporate -affiliates, (ii) against any party if such Patent Assertion arises in whole or -in part from any software, technology, product or service of Facebook or any of -its subsidiaries or corporate affiliates, or (iii) against any party relating -to the Software. Notwithstanding the foregoing, if Facebook or any of its -subsidiaries or corporate affiliates files a lawsuit alleging patent -infringement against you in the first instance, and you respond by filing a -patent infringement counterclaim in that lawsuit against that party that is -unrelated to the Software, the license granted hereunder will not terminate -under section (i) of this paragraph due to such counterclaim. - -A "Necessary Claim" is a claim of a patent owned by Facebook that is -necessarily infringed by the Software standing alone. - -A "Patent Assertion" is any lawsuit or other action alleging direct, indirect, -or contributory infringement or inducement to infringe any patent, including a -cross-claim or counterclaim. diff --git a/node_modules/create-react-class/create-react-class.js b/node_modules/create-react-class/create-react-class.js index d71373b2..6d3f7633 100644 --- a/node_modules/create-react-class/create-react-class.js +++ b/node_modules/create-react-class/create-react-class.js @@ -1,44 +1,103 @@ -(function(f) { - if (typeof exports === "object" && typeof module !== "undefined") { - module.exports = f(); - } else if (typeof define === "function" && define.amd) { - define([], f); - } else { - var g; - if (typeof window !== "undefined") { - g = window; - } else if (typeof global !== "undefined") { - g = global; - } else if (typeof self !== "undefined") { - g = self; - } else { - g = this; - } - if (typeof g.React === "undefined") { - throw Error('React module should be required before createClass'); - } - g.createReactClass = f(); - } -})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + boundMethod.bind = function(newThis) { + for ( + var _len = arguments.length, + args = Array(_len > 1 ? _len - 1 : 0), + _key = 1; + _key < _len; + _key++ + ) { args[_key - 1] = arguments[_key]; } @@ -578,9 +779,24 @@ function factory(ReactComponent, isValidElement, ReactNoopUpdateQueue) { // ignore the value of "this" that the user is trying to use, so // let's warn. if (newThis !== component && newThis !== null) { - "development" !== 'production' ? warning(false, 'bind(): React component methods may only be bound to the ' + 'component instance. See %s', componentName) : void 0; + if (true) { + warning( + false, + 'bind(): React component methods may only be bound to the ' + + 'component instance. See %s', + componentName + ); + } } else if (!args.length) { - "development" !== 'production' ? warning(false, 'bind(): You are binding a component method to the component. ' + 'React does this for you automatically in a high-performance ' + 'way, so you can safely remove this call. See %s', componentName) : void 0; + if (true) { + warning( + false, + 'bind(): You are binding a component method to the component. ' + + 'React does this for you automatically in a high-performance ' + + 'way, so you can safely remove this call. See %s', + componentName + ); + } return boundMethod; } var reboundMethod = _bind.apply(boundMethod, arguments); @@ -607,11 +823,14 @@ function factory(ReactComponent, isValidElement, ReactNoopUpdateQueue) { } } - var IsMountedMixin = { - componentDidMount: function () { + var IsMountedPreMixin = { + componentDidMount: function() { this.__isMounted = true; - }, - componentWillUnmount: function () { + } + }; + + var IsMountedPostMixin = { + componentWillUnmount: function() { this.__isMounted = false; } }; @@ -621,12 +840,11 @@ function factory(ReactComponent, isValidElement, ReactNoopUpdateQueue) { * therefore not already part of the modern ReactComponent. */ var ReactClassMixin = { - /** * TODO: This will be deprecated because state should always keep a consistent * type signature and the only use case for this, is to avoid that. */ - replaceState: function (newState, callback) { + replaceState: function(newState, callback) { this.updater.enqueueReplaceState(this, newState, callback); }, @@ -636,17 +854,29 @@ function factory(ReactComponent, isValidElement, ReactNoopUpdateQueue) { * @protected * @final */ - isMounted: function () { - if ("development" !== 'production') { - "development" !== 'production' ? warning(this.__didWarnIsMounted, '%s: isMounted is deprecated. Instead, make sure to clean up ' + 'subscriptions and pending requests in componentWillUnmount to ' + 'prevent memory leaks.', this.constructor && this.constructor.displayName || this.name || 'Component') : void 0; + isMounted: function() { + if (true) { + warning( + this.__didWarnIsMounted, + '%s: isMounted is deprecated. Instead, make sure to clean up ' + + 'subscriptions and pending requests in componentWillUnmount to ' + + 'prevent memory leaks.', + (this.constructor && this.constructor.displayName) || + this.name || + 'Component' + ); this.__didWarnIsMounted = true; } return !!this.__isMounted; } }; - var ReactClassComponent = function () {}; - _assign(ReactClassComponent.prototype, ReactComponent.prototype, ReactClassMixin); + var ReactClassComponent = function() {}; + _assign( + ReactClassComponent.prototype, + ReactComponent.prototype, + ReactClassMixin + ); /** * Creates a composite component class given a class specification. @@ -660,12 +890,16 @@ function factory(ReactComponent, isValidElement, ReactNoopUpdateQueue) { // To keep our warnings more understandable, we'll use a little hack here to // ensure that Constructor.name !== 'Constructor'. This makes sure we don't // unnecessarily identify a class without displayName as 'Constructor'. - var Constructor = identity(function (props, context, updater) { + var Constructor = identity(function(props, context, updater) { // This constructor gets overridden by mocks. The argument is used // by mocks to assert on what gets mounted. - if ("development" !== 'production') { - "development" !== 'production' ? warning(this instanceof Constructor, 'Something is calling a React component directly. Use a factory or ' + 'JSX instead. See: https://fb.me/react-legacyfactory') : void 0; + if (true) { + warning( + this instanceof Constructor, + 'Something is calling a React component directly. Use a factory or ' + + 'JSX instead. See: https://fb.me/react-legacyfactory' + ); } // Wire up auto-binding @@ -684,15 +918,22 @@ function factory(ReactComponent, isValidElement, ReactNoopUpdateQueue) { // getInitialState and componentWillMount methods for initialization. var initialState = this.getInitialState ? this.getInitialState() : null; - if ("development" !== 'production') { + if (true) { // We allow auto-mocks to proceed as if they're returning null. - if (initialState === undefined && this.getInitialState._isMockFunction) { + if ( + initialState === undefined && + this.getInitialState._isMockFunction + ) { // This is probably bad practice. Consider warning here and // deprecating this convenience. initialState = null; } } - _invariant(typeof initialState === 'object' && !Array.isArray(initialState), '%s.getInitialState(): must return an object or null', Constructor.displayName || 'ReactCompositeComponent'); + _invariant( + typeof initialState === 'object' && !Array.isArray(initialState), + '%s.getInitialState(): must return an object or null', + Constructor.displayName || 'ReactCompositeComponent' + ); this.state = initialState; }); @@ -702,15 +943,16 @@ function factory(ReactComponent, isValidElement, ReactNoopUpdateQueue) { injectedMixins.forEach(mixSpecIntoComponent.bind(null, Constructor)); - mixSpecIntoComponent(Constructor, IsMountedMixin); + mixSpecIntoComponent(Constructor, IsMountedPreMixin); mixSpecIntoComponent(Constructor, spec); + mixSpecIntoComponent(Constructor, IsMountedPostMixin); // Initialize the defaultProps property after all mixins have been merged. if (Constructor.getDefaultProps) { Constructor.defaultProps = Constructor.getDefaultProps(); } - if ("development" !== 'production') { + if (true) { // This is a tag to indicate that the use of these method names is ok, // since it's used with createClass. If it's not, then it's likely a // mistake so we'll warn you to use the static property, property @@ -723,11 +965,32 @@ function factory(ReactComponent, isValidElement, ReactNoopUpdateQueue) { } } - _invariant(Constructor.prototype.render, 'createClass(...): Class specification must implement a `render` method.'); - - if ("development" !== 'production') { - "development" !== 'production' ? warning(!Constructor.prototype.componentShouldUpdate, '%s has a method called ' + 'componentShouldUpdate(). Did you mean shouldComponentUpdate()? ' + 'The name is phrased as a question because the function is ' + 'expected to return a value.', spec.displayName || 'A component') : void 0; - "development" !== 'production' ? warning(!Constructor.prototype.componentWillRecieveProps, '%s has a method called ' + 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?', spec.displayName || 'A component') : void 0; + _invariant( + Constructor.prototype.render, + 'createClass(...): Class specification must implement a `render` method.' + ); + + if (true) { + warning( + !Constructor.prototype.componentShouldUpdate, + '%s has a method called ' + + 'componentShouldUpdate(). Did you mean shouldComponentUpdate()? ' + + 'The name is phrased as a question because the function is ' + + 'expected to return a value.', + spec.displayName || 'A component' + ); + warning( + !Constructor.prototype.componentWillRecieveProps, + '%s has a method called ' + + 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?', + spec.displayName || 'A component' + ); + warning( + !Constructor.prototype.UNSAFE_componentWillRecieveProps, + '%s has a method called UNSAFE_componentWillRecieveProps(). ' + + 'Did you mean UNSAFE_componentWillReceiveProps()?', + spec.displayName || 'A component' + ); } // Reduce time spent doing lookups by setting these on the prototype. @@ -745,20 +1008,37 @@ function factory(ReactComponent, isValidElement, ReactNoopUpdateQueue) { module.exports = factory; -},{"fbjs/lib/emptyObject":4,"fbjs/lib/invariant":5,"fbjs/lib/warning":6,"object-assign":7}],2:[function(require,module,exports){ + +/***/ }), +/* 1 */ +/***/ (function(module, exports) { + +module.exports = __WEBPACK_EXTERNAL_MODULE_1__; + +/***/ }), +/* 2 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. + * Copyright (c) 2013-present, Facebook, Inc. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ -'use strict'; -var factory = require('./factory'); + +var React = __webpack_require__(1); +var factory = __webpack_require__(0); + +if (typeof React === 'undefined') { + throw Error( + 'create-react-class could not find the React object. If you are using script tags, ' + + 'make sure that React is being loaded before create-react-class.' + ); +} // Hack to grab NoopUpdateQueue from isomorphic React var ReactNoopUpdateQueue = new React.Component().updater; @@ -769,9 +1049,14 @@ module.exports = factory( ReactNoopUpdateQueue ); -},{"./factory":1}],3:[function(require,module,exports){ + +/***/ }), +/* 3 */ +/***/ (function(module, exports, __webpack_require__) { + "use strict"; + /** * Copyright (c) 2013-present, Facebook, Inc. * All rights reserved. @@ -808,7 +1093,12 @@ emptyFunction.thatReturnsArgument = function (arg) { }; module.exports = emptyFunction; -},{}],4:[function(require,module,exports){ + +/***/ }), +/* 4 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; /** * Copyright (c) 2013-present, Facebook, Inc. * All rights reserved. @@ -819,16 +1109,21 @@ module.exports = emptyFunction; * */ -'use strict'; + var emptyObject = {}; -if ("development" !== 'production') { +if (true) { Object.freeze(emptyObject); } module.exports = emptyObject; -},{}],5:[function(require,module,exports){ + +/***/ }), +/* 5 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; /** * Copyright (c) 2013-present, Facebook, Inc. * All rights reserved. @@ -839,7 +1134,7 @@ module.exports = emptyObject; * */ -'use strict'; + /** * Use invariant() to assert state which your program assumes to be true. @@ -854,7 +1149,7 @@ module.exports = emptyObject; var validateFormat = function validateFormat(format) {}; -if ("development" !== 'production') { +if (true) { validateFormat = function validateFormat(format) { if (format === undefined) { throw new Error('invariant requires an error message argument'); @@ -884,7 +1179,12 @@ function invariant(condition, format, a, b, c, d, e, f) { } module.exports = invariant; -},{}],6:[function(require,module,exports){ + +/***/ }), +/* 6 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; /** * Copyright 2014-2015, Facebook, Inc. * All rights reserved. @@ -895,9 +1195,9 @@ module.exports = invariant; * */ -'use strict'; -var emptyFunction = require('./emptyFunction'); + +var emptyFunction = __webpack_require__(3); /** * Similar to invariant but only logs a warning if the condition is not met. @@ -908,7 +1208,7 @@ var emptyFunction = require('./emptyFunction'); var warning = emptyFunction; -if ("development" !== 'production') { +if (true) { (function () { var printWarning = function printWarning(format) { for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { @@ -951,14 +1251,19 @@ if ("development" !== 'production') { } module.exports = warning; -},{"./emptyFunction":3}],7:[function(require,module,exports){ + +/***/ }), +/* 7 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; /* object-assign (c) Sindre Sorhus @license MIT */ -'use strict'; + /* eslint-disable no-unused-vars */ var getOwnPropertySymbols = Object.getOwnPropertySymbols; var hasOwnProperty = Object.prototype.hasOwnProperty; @@ -1043,5 +1348,7 @@ module.exports = shouldUseNative() ? Object.assign : function (target, source) { return to; }; -},{}]},{},[2])(2) + +/***/ }) +/******/ ]); }); \ No newline at end of file diff --git a/node_modules/create-react-class/create-react-class.min.js b/node_modules/create-react-class/create-react-class.min.js index b7d37d62..8d89e927 100644 --- a/node_modules/create-react-class/create-react-class.min.js +++ b/node_modules/create-react-class/create-react-class.min.js @@ -1 +1 @@ -!function(f){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=f();else if("function"==typeof define&&define.amd)define([],f);else{var g;if(g="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,void 0===g.React)throw Error("React module should be required before createClass");g.createReactClass=f()}}(function(){return function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a="function"==typeof require&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n||e)},l,l.exports,e,t,n,r)}return n[o].exports}for(var i="function"==typeof require&&require,o=0;o 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + boundMethod.bind = function(newThis) { + for ( + var _len = arguments.length, + args = Array(_len > 1 ? _len - 1 : 0), + _key = 1; + _key < _len; + _key++ + ) { args[_key - 1] = arguments[_key]; } @@ -556,9 +696,24 @@ function factory(ReactComponent, isValidElement, ReactNoopUpdateQueue) { // ignore the value of "this" that the user is trying to use, so // let's warn. if (newThis !== component && newThis !== null) { - process.env.NODE_ENV !== 'production' ? warning(false, 'bind(): React component methods may only be bound to the ' + 'component instance. See %s', componentName) : void 0; + if (process.env.NODE_ENV !== 'production') { + warning( + false, + 'bind(): React component methods may only be bound to the ' + + 'component instance. See %s', + componentName + ); + } } else if (!args.length) { - process.env.NODE_ENV !== 'production' ? warning(false, 'bind(): You are binding a component method to the component. ' + 'React does this for you automatically in a high-performance ' + 'way, so you can safely remove this call. See %s', componentName) : void 0; + if (process.env.NODE_ENV !== 'production') { + warning( + false, + 'bind(): You are binding a component method to the component. ' + + 'React does this for you automatically in a high-performance ' + + 'way, so you can safely remove this call. See %s', + componentName + ); + } return boundMethod; } var reboundMethod = _bind.apply(boundMethod, arguments); @@ -585,11 +740,14 @@ function factory(ReactComponent, isValidElement, ReactNoopUpdateQueue) { } } - var IsMountedMixin = { - componentDidMount: function () { + var IsMountedPreMixin = { + componentDidMount: function() { this.__isMounted = true; - }, - componentWillUnmount: function () { + } + }; + + var IsMountedPostMixin = { + componentWillUnmount: function() { this.__isMounted = false; } }; @@ -599,12 +757,11 @@ function factory(ReactComponent, isValidElement, ReactNoopUpdateQueue) { * therefore not already part of the modern ReactComponent. */ var ReactClassMixin = { - /** * TODO: This will be deprecated because state should always keep a consistent * type signature and the only use case for this, is to avoid that. */ - replaceState: function (newState, callback) { + replaceState: function(newState, callback) { this.updater.enqueueReplaceState(this, newState, callback); }, @@ -614,17 +771,29 @@ function factory(ReactComponent, isValidElement, ReactNoopUpdateQueue) { * @protected * @final */ - isMounted: function () { + isMounted: function() { if (process.env.NODE_ENV !== 'production') { - process.env.NODE_ENV !== 'production' ? warning(this.__didWarnIsMounted, '%s: isMounted is deprecated. Instead, make sure to clean up ' + 'subscriptions and pending requests in componentWillUnmount to ' + 'prevent memory leaks.', this.constructor && this.constructor.displayName || this.name || 'Component') : void 0; + warning( + this.__didWarnIsMounted, + '%s: isMounted is deprecated. Instead, make sure to clean up ' + + 'subscriptions and pending requests in componentWillUnmount to ' + + 'prevent memory leaks.', + (this.constructor && this.constructor.displayName) || + this.name || + 'Component' + ); this.__didWarnIsMounted = true; } return !!this.__isMounted; } }; - var ReactClassComponent = function () {}; - _assign(ReactClassComponent.prototype, ReactComponent.prototype, ReactClassMixin); + var ReactClassComponent = function() {}; + _assign( + ReactClassComponent.prototype, + ReactComponent.prototype, + ReactClassMixin + ); /** * Creates a composite component class given a class specification. @@ -638,12 +807,16 @@ function factory(ReactComponent, isValidElement, ReactNoopUpdateQueue) { // To keep our warnings more understandable, we'll use a little hack here to // ensure that Constructor.name !== 'Constructor'. This makes sure we don't // unnecessarily identify a class without displayName as 'Constructor'. - var Constructor = identity(function (props, context, updater) { + var Constructor = identity(function(props, context, updater) { // This constructor gets overridden by mocks. The argument is used // by mocks to assert on what gets mounted. if (process.env.NODE_ENV !== 'production') { - process.env.NODE_ENV !== 'production' ? warning(this instanceof Constructor, 'Something is calling a React component directly. Use a factory or ' + 'JSX instead. See: https://fb.me/react-legacyfactory') : void 0; + warning( + this instanceof Constructor, + 'Something is calling a React component directly. Use a factory or ' + + 'JSX instead. See: https://fb.me/react-legacyfactory' + ); } // Wire up auto-binding @@ -664,13 +837,20 @@ function factory(ReactComponent, isValidElement, ReactNoopUpdateQueue) { var initialState = this.getInitialState ? this.getInitialState() : null; if (process.env.NODE_ENV !== 'production') { // We allow auto-mocks to proceed as if they're returning null. - if (initialState === undefined && this.getInitialState._isMockFunction) { + if ( + initialState === undefined && + this.getInitialState._isMockFunction + ) { // This is probably bad practice. Consider warning here and // deprecating this convenience. initialState = null; } } - _invariant(typeof initialState === 'object' && !Array.isArray(initialState), '%s.getInitialState(): must return an object or null', Constructor.displayName || 'ReactCompositeComponent'); + _invariant( + typeof initialState === 'object' && !Array.isArray(initialState), + '%s.getInitialState(): must return an object or null', + Constructor.displayName || 'ReactCompositeComponent' + ); this.state = initialState; }); @@ -680,8 +860,9 @@ function factory(ReactComponent, isValidElement, ReactNoopUpdateQueue) { injectedMixins.forEach(mixSpecIntoComponent.bind(null, Constructor)); - mixSpecIntoComponent(Constructor, IsMountedMixin); + mixSpecIntoComponent(Constructor, IsMountedPreMixin); mixSpecIntoComponent(Constructor, spec); + mixSpecIntoComponent(Constructor, IsMountedPostMixin); // Initialize the defaultProps property after all mixins have been merged. if (Constructor.getDefaultProps) { @@ -701,11 +882,32 @@ function factory(ReactComponent, isValidElement, ReactNoopUpdateQueue) { } } - _invariant(Constructor.prototype.render, 'createClass(...): Class specification must implement a `render` method.'); + _invariant( + Constructor.prototype.render, + 'createClass(...): Class specification must implement a `render` method.' + ); if (process.env.NODE_ENV !== 'production') { - process.env.NODE_ENV !== 'production' ? warning(!Constructor.prototype.componentShouldUpdate, '%s has a method called ' + 'componentShouldUpdate(). Did you mean shouldComponentUpdate()? ' + 'The name is phrased as a question because the function is ' + 'expected to return a value.', spec.displayName || 'A component') : void 0; - process.env.NODE_ENV !== 'production' ? warning(!Constructor.prototype.componentWillRecieveProps, '%s has a method called ' + 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?', spec.displayName || 'A component') : void 0; + warning( + !Constructor.prototype.componentShouldUpdate, + '%s has a method called ' + + 'componentShouldUpdate(). Did you mean shouldComponentUpdate()? ' + + 'The name is phrased as a question because the function is ' + + 'expected to return a value.', + spec.displayName || 'A component' + ); + warning( + !Constructor.prototype.componentWillRecieveProps, + '%s has a method called ' + + 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?', + spec.displayName || 'A component' + ); + warning( + !Constructor.prototype.UNSAFE_componentWillRecieveProps, + '%s has a method called UNSAFE_componentWillRecieveProps(). ' + + 'Did you mean UNSAFE_componentWillReceiveProps()?', + spec.displayName || 'A component' + ); } // Reduce time spent doing lookups by setting these on the prototype. diff --git a/node_modules/create-react-class/index.js b/node_modules/create-react-class/index.js index 8295b22a..3ad609f3 100644 --- a/node_modules/create-react-class/index.js +++ b/node_modules/create-react-class/index.js @@ -1,10 +1,8 @@ /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. + * Copyright (c) 2013-present, Facebook, Inc. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ @@ -13,6 +11,13 @@ var React = require('react'); var factory = require('./factory'); +if (typeof React === 'undefined') { + throw Error( + 'create-react-class could not find the React object. If you are using script tags, ' + + 'make sure that React is being loaded before create-react-class.' + ); +} + // Hack to grab NoopUpdateQueue from isomorphic React var ReactNoopUpdateQueue = new React.Component().updater; diff --git a/node_modules/create-react-class/package.json b/node_modules/create-react-class/package.json index 620b2b85..fc064d3b 100644 --- a/node_modules/create-react-class/package.json +++ b/node_modules/create-react-class/package.json @@ -1,49 +1,27 @@ { - "_args": [ - [ - { - "raw": "create-react-class", - "scope": null, - "escapedName": "create-react-class", - "name": "create-react-class", - "rawSpec": "", - "spec": "latest", - "type": "tag" - }, - "/Users/Michal/Desktop/dev/react-slider" - ] - ], - "_from": "create-react-class@latest", - "_id": "create-react-class@15.5.3", - "_inCache": true, + "_from": "create-react-class@^15.6.3", + "_id": "create-react-class@15.6.3", + "_inBundle": false, + "_integrity": "sha512-M+/3Q6E6DLO6Yx3OwrWjwHBnvfXXYA7W+dFjt/ZDBemHO1DDZhsalX/NUtnTYclN6GfnBDRh4qRHjcDHmlJBJg==", "_location": "/create-react-class", - "_nodeVersion": "7.7.4", - "_npmOperationalInternal": { - "host": "packages-12-west.internal.npmjs.com", - "tmp": "tmp/create-react-class-15.5.3.tgz_1494374356947_0.6229187545832247" - }, - "_npmUser": { - "name": "gaearon", - "email": "dan.abramov@gmail.com" - }, - "_npmVersion": "4.1.2", "_phantomChildren": {}, "_requested": { - "raw": "create-react-class", - "scope": null, - "escapedName": "create-react-class", + "type": "range", + "registry": true, + "raw": "create-react-class@^15.6.3", "name": "create-react-class", - "rawSpec": "", - "spec": "latest", - "type": "tag" + "escapedName": "create-react-class", + "rawSpec": "^15.6.3", + "saveSpec": null, + "fetchSpec": "^15.6.3" }, "_requiredBy": [ - "#USER" + "#USER", + "/" ], - "_resolved": "https://registry.npmjs.org/create-react-class/-/create-react-class-15.5.3.tgz", - "_shasum": "fb0f7cae79339e9a179e194ef466efa3923820fe", - "_shrinkwrap": null, - "_spec": "create-react-class", + "_resolved": "https://registry.npmjs.org/create-react-class/-/create-react-class-15.6.3.tgz", + "_shasum": "2d73237fb3f970ae6ebe011a9e66f46dbca80036", + "_spec": "create-react-class@^15.6.3", "_where": "/Users/Michal/Desktop/dev/react-slider", "browserify": { "transform": [ @@ -53,26 +31,23 @@ "bugs": { "url": "https://github.com/facebook/react/issues" }, + "bundleDependencies": false, "dependencies": { "fbjs": "^0.8.9", "loose-envify": "^1.3.1", "object-assign": "^4.1.1" }, - "description": "Deprecated, legacy API for creating React components.", + "deprecated": false, + "description": "Legacy API for creating React components.", "devDependencies": { "jest": "^19.0.2", - "react": "^15.5.0", - "react-addons-test-utils": "^15.5.0", - "react-dom": "^15.5.0" - }, - "directories": {}, - "dist": { - "shasum": "fb0f7cae79339e9a179e194ef466efa3923820fe", - "tarball": "https://registry.npmjs.org/create-react-class/-/create-react-class-15.5.3.tgz" + "prop-types": "^15.5.10", + "react": "^15.5.4", + "react-dom": "^15.5.4", + "webpack": "^2.6.1" }, "files": [ "LICENSE", - "PATENTS", "factory.js", "index.js", "create-react-class.js", @@ -82,48 +57,19 @@ "keywords": [ "react" ], - "license": "BSD-3-Clause", + "license": "MIT", "main": "index.js", - "maintainers": [ - { - "name": "acdlite", - "email": "acdlite@me.com" - }, - { - "name": "brianvaughn", - "email": "briandavidvaughn@gmail.com" - }, - { - "name": "flarnie", - "email": "flarnie.npm@gmail.com" - }, - { - "name": "gaearon", - "email": "dan.abramov@gmail.com" - }, - { - "name": "sebmarkbage", - "email": "sebastian@calyptus.eu" - }, - { - "name": "spicyj", - "email": "ben@benalpert.com" - }, - { - "name": "tomocchino", - "email": "tomocchino@gmail.com" - } - ], "name": "create-react-class", - "optionalDependencies": {}, - "readme": "# create-react-class\n\nA drop-in replacement for `React.createClass`.\n\nRefer to the [React documentation](https://facebook.github.io/react/docs/react-without-es6.html) for more information.\n", - "readmeFilename": "README.md", "repository": { "type": "git", "url": "git+https://github.com/facebook/react.git" }, "scripts": { - "test": "jest" + "build": "npm run build:dev && npm run build:prod", + "build:dev": "NODE_ENV=development webpack && TEST_ENTRY=./create-react-class.js jest", + "build:prod": "NODE_ENV=production webpack && NODE_ENV=production TEST_ENTRY=./create-react-class.min.js jest", + "prepublish": "npm test && npm run build", + "test": "TEST_ENTRY=./index.js jest" }, - "version": "15.5.3" + "version": "15.6.3" } diff --git a/node_modules/encoding/package.json b/node_modules/encoding/package.json index 3768b94c..1a8b7686 100644 --- a/node_modules/encoding/package.json +++ b/node_modules/encoding/package.json @@ -1,46 +1,32 @@ { "_args": [ [ - { - "raw": "encoding@^0.1.11", - "scope": null, - "escapedName": "encoding", - "name": "encoding", - "rawSpec": "^0.1.11", - "spec": ">=0.1.11 <0.2.0", - "type": "range" - }, - "/Users/Michal/Desktop/dev/react-slider/node_modules/node-fetch" + "encoding@0.1.12", + "/Users/Michal/Desktop/dev/react-slider" ] ], - "_from": "encoding@>=0.1.11 <0.2.0", + "_from": "encoding@0.1.12", "_id": "encoding@0.1.12", - "_inCache": true, + "_inBundle": false, + "_integrity": "sha1-U4tm8+5izRq1HsMjgp0flIDHS+s=", "_location": "/encoding", - "_nodeVersion": "5.3.0", - "_npmUser": { - "name": "andris", - "email": "andris@kreata.ee" - }, - "_npmVersion": "3.3.12", "_phantomChildren": {}, "_requested": { - "raw": "encoding@^0.1.11", - "scope": null, - "escapedName": "encoding", + "type": "version", + "registry": true, + "raw": "encoding@0.1.12", "name": "encoding", - "rawSpec": "^0.1.11", - "spec": ">=0.1.11 <0.2.0", - "type": "range" + "escapedName": "encoding", + "rawSpec": "0.1.12", + "saveSpec": null, + "fetchSpec": "0.1.12" }, "_requiredBy": [ "/node-fetch" ], "_resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.12.tgz", - "_shasum": "538b66f3ee62cd1ab51ec323829d1f9480c74beb", - "_shrinkwrap": null, - "_spec": "encoding@^0.1.11", - "_where": "/Users/Michal/Desktop/dev/react-slider/node_modules/node-fetch", + "_spec": "0.1.12", + "_where": "/Users/Michal/Desktop/dev/react-slider", "author": { "name": "Andris Reinman" }, @@ -55,25 +41,10 @@ "iconv": "~2.1.11", "nodeunit": "~0.9.1" }, - "directories": {}, - "dist": { - "shasum": "538b66f3ee62cd1ab51ec323829d1f9480c74beb", - "tarball": "https://registry.npmjs.org/encoding/-/encoding-0.1.12.tgz" - }, - "gitHead": "91ae950aaa854a119122c27cdbabd8c5585106f7", "homepage": "https://github.com/andris9/encoding#readme", "license": "MIT", "main": "lib/encoding.js", - "maintainers": [ - { - "name": "andris", - "email": "andris@node.ee" - } - ], "name": "encoding", - "optionalDependencies": {}, - "readme": "# Encoding\n\n**encoding** is a simple wrapper around [node-iconv](https://github.com/bnoordhuis/node-iconv) and [iconv-lite](https://github.com/ashtuchkin/iconv-lite/) to convert strings from one encoding to another. If node-iconv is not available for some reason,\niconv-lite will be used instead of it as a fallback.\n\n[![Build Status](https://secure.travis-ci.org/andris9/encoding.svg)](http://travis-ci.org/andris9/Nodemailer)\n[![npm version](https://badge.fury.io/js/encoding.svg)](http://badge.fury.io/js/encoding)\n\n## Install\n\nInstall through npm\n\n npm install encoding\n\n## Usage\n\nRequire the module\n\n var encoding = require(\"encoding\");\n\nConvert with encoding.convert()\n\n var resultBuffer = encoding.convert(text, toCharset, fromCharset);\n\nWhere\n\n * **text** is either a Buffer or a String to be converted\n * **toCharset** is the characterset to convert the string\n * **fromCharset** (*optional*, defaults to UTF-8) is the source charset\n\nOutput of the conversion is always a Buffer object.\n\nExample\n\n var result = encoding.convert(\"ÕÄÖÜ\", \"Latin_1\");\n console.log(result); //\n\n## iconv support\n\nBy default only iconv-lite is bundled. If you need node-iconv support, you need to add it\nas an additional dependency for your project:\n\n ...,\n \"dependencies\":{\n \"encoding\": \"*\",\n \"iconv\": \"*\"\n },\n ...\n\n## License\n\n**MIT**\n", - "readmeFilename": "README.md", "repository": { "type": "git", "url": "git+https://github.com/andris9/encoding.git" diff --git a/node_modules/fbjs/CHANGELOG.md b/node_modules/fbjs/CHANGELOG.md index 051e343e..eabaf001 100644 --- a/node_modules/fbjs/CHANGELOG.md +++ b/node_modules/fbjs/CHANGELOG.md @@ -1,6 +1,34 @@ ## [Unreleased] +## [0.8.16] - 2017-09-25 + +### Changed +- Relicense to MIT as part of React relicense. + + +## [0.8.15] - 2017-09-07 + +### Fixed +- `getDocumentScrollElement` now correctly returns the `` element in Chrome 61 instead of ``. + + +## [0.8.14] - 2017-07-25 + +### Removed +- Flow annotations for `keyMirror` module. The annotation generates a syntax error after being re-printed by Babel. + + +## [0.8.13] - 2017-07-25 + +### Added +- Flow annotations for `keyMirror` module. + +### Fixed +- Fixed strict argument arity issues with `Deferred` module. +- Corrected License header in `EventListener`. + + ## [0.8.12] - 2017-03-29 ### Fixed diff --git a/node_modules/fbjs/LICENSE b/node_modules/fbjs/LICENSE index 10bd152a..29e2bc21 100644 --- a/node_modules/fbjs/LICENSE +++ b/node_modules/fbjs/LICENSE @@ -1,31 +1,20 @@ -BSD License - -For fbjs software +MIT License Copyright (c) 2013-present, Facebook, Inc. -All rights reserved. - -Redistribution and use 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. +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: - * Neither the name Facebook nor the names of its contributors may be used to - endorse or promote products derived from this software without specific - prior written permission. +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. -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 HOLDER 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. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/fbjs/PATENTS b/node_modules/fbjs/PATENTS deleted file mode 100644 index fd9879c6..00000000 --- a/node_modules/fbjs/PATENTS +++ /dev/null @@ -1,33 +0,0 @@ -Additional Grant of Patent Rights Version 2 - -"Software" means the fbjs software distributed by Facebook, Inc. - -Facebook, Inc. ("Facebook") hereby grants to each recipient of the Software -("you") a perpetual, worldwide, royalty-free, non-exclusive, irrevocable -(subject to the termination provision below) license under any Necessary -Claims, to make, have made, use, sell, offer to sell, import, and otherwise -transfer the Software. For avoidance of doubt, no license is granted under -Facebook's rights in any patent claims that are infringed by (i) modifications -to the Software made by you or any third party or (ii) the Software in -combination with any software or other technology. - -The license granted hereunder will terminate, automatically and without notice, -if you (or any of your subsidiaries, corporate affiliates or agents) initiate -directly or indirectly, or take a direct financial interest in, any Patent -Assertion: (i) against Facebook or any of its subsidiaries or corporate -affiliates, (ii) against any party if such Patent Assertion arises in whole or -in part from any software, technology, product or service of Facebook or any of -its subsidiaries or corporate affiliates, or (iii) against any party relating -to the Software. Notwithstanding the foregoing, if Facebook or any of its -subsidiaries or corporate affiliates files a lawsuit alleging patent -infringement against you in the first instance, and you respond by filing a -patent infringement counterclaim in that lawsuit against that party that is -unrelated to the Software, the license granted hereunder will not terminate -under section (i) of this paragraph due to such counterclaim. - -A "Necessary Claim" is a claim of a patent owned by Facebook that is -necessarily infringed by the Software standing alone. - -A "Patent Assertion" is any lawsuit or other action alleging direct, indirect, -or contributory infringement or inducement to infringe any patent, including a -cross-claim or counterclaim. diff --git a/node_modules/fbjs/flow/lib/dev.js b/node_modules/fbjs/flow/lib/dev.js index 24bedef3..01c75f73 100644 --- a/node_modules/fbjs/flow/lib/dev.js +++ b/node_modules/fbjs/flow/lib/dev.js @@ -1,10 +1,8 @@ /** - * Copyright 2013-2015, Facebook, Inc. - * All rights reserved. + * Copyright (c) 2013-present, Facebook, Inc. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ declare var __DEV__: boolean; diff --git a/node_modules/fbjs/index.js b/node_modules/fbjs/index.js index 98539dfd..80626fa6 100644 --- a/node_modules/fbjs/index.js +++ b/node_modules/fbjs/index.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/node_modules/fbjs/lib/CSSCore.js b/node_modules/fbjs/lib/CSSCore.js index c8efce7d..75d10bd2 100644 --- a/node_modules/fbjs/lib/CSSCore.js +++ b/node_modules/fbjs/lib/CSSCore.js @@ -2,11 +2,9 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @typechecks */ diff --git a/node_modules/fbjs/lib/CSSCore.js.flow b/node_modules/fbjs/lib/CSSCore.js.flow index e7d8479a..967aa189 100644 --- a/node_modules/fbjs/lib/CSSCore.js.flow +++ b/node_modules/fbjs/lib/CSSCore.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule CSSCore * @typechecks diff --git a/node_modules/fbjs/lib/DataTransfer.js b/node_modules/fbjs/lib/DataTransfer.js index d37882b8..6875d9a0 100644 --- a/node_modules/fbjs/lib/DataTransfer.js +++ b/node_modules/fbjs/lib/DataTransfer.js @@ -4,11 +4,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @typechecks */ diff --git a/node_modules/fbjs/lib/DataTransfer.js.flow b/node_modules/fbjs/lib/DataTransfer.js.flow index 3d185fe2..3588a193 100644 --- a/node_modules/fbjs/lib/DataTransfer.js.flow +++ b/node_modules/fbjs/lib/DataTransfer.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule DataTransfer * @typechecks diff --git a/node_modules/fbjs/lib/Deferred.js b/node_modules/fbjs/lib/Deferred.js index bfc35858..8ec65ccf 100644 --- a/node_modules/fbjs/lib/Deferred.js +++ b/node_modules/fbjs/lib/Deferred.js @@ -6,11 +6,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @typechecks * @@ -52,15 +50,15 @@ var Deferred = function () { this._reject(reason); }; - Deferred.prototype["catch"] = function _catch() { + Deferred.prototype["catch"] = function _catch(onReject) { return Promise.prototype["catch"].apply(this._promise, arguments); }; - Deferred.prototype.then = function then() { + Deferred.prototype.then = function then(onFulfill, onReject) { return Promise.prototype.then.apply(this._promise, arguments); }; - Deferred.prototype.done = function done() { + Deferred.prototype.done = function done(onFulfill, onReject) { // Embed the polyfill for the non-standard Promise.prototype.done so that // users of the open source fbjs don't need a custom lib for Promise var promise = arguments.length ? this._promise.then.apply(this._promise, arguments) : this._promise; diff --git a/node_modules/fbjs/lib/Deferred.js.flow b/node_modules/fbjs/lib/Deferred.js.flow index aaad67b5..26bce875 100644 --- a/node_modules/fbjs/lib/Deferred.js.flow +++ b/node_modules/fbjs/lib/Deferred.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule Deferred * @typechecks @@ -48,15 +46,15 @@ class Deferred { this._reject(reason); } - catch(): Promise { + catch(onReject?: ?(error: any) => mixed): Promise { return Promise.prototype.catch.apply(this._promise, arguments); } - then(): Promise { + then(onFulfill?: ?(value: any) => mixed, onReject?: ?(error: any) => mixed): Promise { return Promise.prototype.then.apply(this._promise, arguments); } - done(): void { + done(onFulfill?: ?(value: any) => mixed, onReject?: ?(error: any) => mixed): void { // Embed the polyfill for the non-standard Promise.prototype.done so that // users of the open source fbjs don't need a custom lib for Promise const promise = arguments.length ? this._promise.then.apply(this._promise, arguments) : this._promise; diff --git a/node_modules/fbjs/lib/ErrorUtils.js b/node_modules/fbjs/lib/ErrorUtils.js index c03245b3..0ebdcbc4 100644 --- a/node_modules/fbjs/lib/ErrorUtils.js +++ b/node_modules/fbjs/lib/ErrorUtils.js @@ -2,11 +2,9 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/node_modules/fbjs/lib/ErrorUtils.js.flow b/node_modules/fbjs/lib/ErrorUtils.js.flow index 447bd87a..8a8e5cd4 100644 --- a/node_modules/fbjs/lib/ErrorUtils.js.flow +++ b/node_modules/fbjs/lib/ErrorUtils.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule ErrorUtils */ diff --git a/node_modules/fbjs/lib/EventListener.js b/node_modules/fbjs/lib/EventListener.js index c20a23a1..61c2220c 100644 --- a/node_modules/fbjs/lib/EventListener.js +++ b/node_modules/fbjs/lib/EventListener.js @@ -3,17 +3,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @typechecks */ diff --git a/node_modules/fbjs/lib/EventListener.js.flow b/node_modules/fbjs/lib/EventListener.js.flow index 1f566665..283a3fa9 100644 --- a/node_modules/fbjs/lib/EventListener.js.flow +++ b/node_modules/fbjs/lib/EventListener.js.flow @@ -1,17 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule EventListener * @typechecks diff --git a/node_modules/fbjs/lib/ExecutionEnvironment.js b/node_modules/fbjs/lib/ExecutionEnvironment.js index ffd88af1..32936fdc 100644 --- a/node_modules/fbjs/lib/ExecutionEnvironment.js +++ b/node_modules/fbjs/lib/ExecutionEnvironment.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/node_modules/fbjs/lib/ExecutionEnvironment.js.flow b/node_modules/fbjs/lib/ExecutionEnvironment.js.flow index 25e75195..fbea7e1b 100644 --- a/node_modules/fbjs/lib/ExecutionEnvironment.js.flow +++ b/node_modules/fbjs/lib/ExecutionEnvironment.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule ExecutionEnvironment */ diff --git a/node_modules/fbjs/lib/Keys.js b/node_modules/fbjs/lib/Keys.js index 4c344bdf..f2f0d9ca 100644 --- a/node_modules/fbjs/lib/Keys.js +++ b/node_modules/fbjs/lib/Keys.js @@ -2,11 +2,9 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/node_modules/fbjs/lib/Keys.js.flow b/node_modules/fbjs/lib/Keys.js.flow index 8a35ea60..22f57f38 100644 --- a/node_modules/fbjs/lib/Keys.js.flow +++ b/node_modules/fbjs/lib/Keys.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule Keys */ diff --git a/node_modules/fbjs/lib/Map.js b/node_modules/fbjs/lib/Map.js index d242802f..c224b891 100644 --- a/node_modules/fbjs/lib/Map.js +++ b/node_modules/fbjs/lib/Map.js @@ -2,11 +2,9 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/node_modules/fbjs/lib/Map.js.flow b/node_modules/fbjs/lib/Map.js.flow index 3879fbfc..f0a6e2c1 100644 --- a/node_modules/fbjs/lib/Map.js.flow +++ b/node_modules/fbjs/lib/Map.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule Map */ diff --git a/node_modules/fbjs/lib/PhotosMimeType.js b/node_modules/fbjs/lib/PhotosMimeType.js index 48fc3b5c..467892a7 100644 --- a/node_modules/fbjs/lib/PhotosMimeType.js +++ b/node_modules/fbjs/lib/PhotosMimeType.js @@ -2,11 +2,9 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ var PhotosMimeType = { diff --git a/node_modules/fbjs/lib/PhotosMimeType.js.flow b/node_modules/fbjs/lib/PhotosMimeType.js.flow index ebd10a66..a6c3ae13 100644 --- a/node_modules/fbjs/lib/PhotosMimeType.js.flow +++ b/node_modules/fbjs/lib/PhotosMimeType.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule PhotosMimeType */ diff --git a/node_modules/fbjs/lib/Promise.js b/node_modules/fbjs/lib/Promise.js index e92481a6..3ce10a0e 100644 --- a/node_modules/fbjs/lib/Promise.js +++ b/node_modules/fbjs/lib/Promise.js @@ -2,11 +2,9 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/node_modules/fbjs/lib/Promise.js.flow b/node_modules/fbjs/lib/Promise.js.flow index d5932aaa..1b421ef6 100644 --- a/node_modules/fbjs/lib/Promise.js.flow +++ b/node_modules/fbjs/lib/Promise.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule Promise */ diff --git a/node_modules/fbjs/lib/Promise.native.js b/node_modules/fbjs/lib/Promise.native.js index 2a6a3b8a..27aa673f 100644 --- a/node_modules/fbjs/lib/Promise.native.js +++ b/node_modules/fbjs/lib/Promise.native.js @@ -1,10 +1,9 @@ /** * - * Copyright 2013-2016 Facebook, Inc. + * Copyright (c) 2013-present, Facebook, Inc. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * This module wraps and augments the minimally ES6-compliant Promise * implementation provided by the promise npm package. diff --git a/node_modules/fbjs/lib/Promise.native.js.flow b/node_modules/fbjs/lib/Promise.native.js.flow index ff8a91f2..a988e5b3 100644 --- a/node_modules/fbjs/lib/Promise.native.js.flow +++ b/node_modules/fbjs/lib/Promise.native.js.flow @@ -1,10 +1,9 @@ /** * - * Copyright 2013-2016 Facebook, Inc. + * Copyright (c) 2013-present, Facebook, Inc. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * This module wraps and augments the minimally ES6-compliant Promise * implementation provided by the promise npm package. diff --git a/node_modules/fbjs/lib/PromiseMap.js b/node_modules/fbjs/lib/PromiseMap.js index 63973c51..467060a8 100644 --- a/node_modules/fbjs/lib/PromiseMap.js +++ b/node_modules/fbjs/lib/PromiseMap.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * */ diff --git a/node_modules/fbjs/lib/PromiseMap.js.flow b/node_modules/fbjs/lib/PromiseMap.js.flow index d87f1ceb..5ae135a4 100644 --- a/node_modules/fbjs/lib/PromiseMap.js.flow +++ b/node_modules/fbjs/lib/PromiseMap.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule PromiseMap * @flow diff --git a/node_modules/fbjs/lib/Scroll.js b/node_modules/fbjs/lib/Scroll.js index 6159e294..85dd4fd2 100644 --- a/node_modules/fbjs/lib/Scroll.js +++ b/node_modules/fbjs/lib/Scroll.js @@ -2,11 +2,9 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/node_modules/fbjs/lib/Scroll.js.flow b/node_modules/fbjs/lib/Scroll.js.flow index e3588c39..1d65bcbd 100644 --- a/node_modules/fbjs/lib/Scroll.js.flow +++ b/node_modules/fbjs/lib/Scroll.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule Scroll */ diff --git a/node_modules/fbjs/lib/Set.js b/node_modules/fbjs/lib/Set.js index c0ff64a8..43470f1e 100644 --- a/node_modules/fbjs/lib/Set.js +++ b/node_modules/fbjs/lib/Set.js @@ -2,11 +2,9 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/node_modules/fbjs/lib/Set.js.flow b/node_modules/fbjs/lib/Set.js.flow index f566f70f..d1a48d90 100644 --- a/node_modules/fbjs/lib/Set.js.flow +++ b/node_modules/fbjs/lib/Set.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule Set */ diff --git a/node_modules/fbjs/lib/Style.js b/node_modules/fbjs/lib/Style.js index c4b412db..28071b91 100644 --- a/node_modules/fbjs/lib/Style.js +++ b/node_modules/fbjs/lib/Style.js @@ -2,11 +2,9 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @typechecks */ diff --git a/node_modules/fbjs/lib/Style.js.flow b/node_modules/fbjs/lib/Style.js.flow index 125c4eff..d90db8c3 100644 --- a/node_modules/fbjs/lib/Style.js.flow +++ b/node_modules/fbjs/lib/Style.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule Style * @typechecks diff --git a/node_modules/fbjs/lib/TokenizeUtil.js b/node_modules/fbjs/lib/TokenizeUtil.js index 046bde62..74567c87 100644 --- a/node_modules/fbjs/lib/TokenizeUtil.js +++ b/node_modules/fbjs/lib/TokenizeUtil.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @typechecks * @stub diff --git a/node_modules/fbjs/lib/TokenizeUtil.js.flow b/node_modules/fbjs/lib/TokenizeUtil.js.flow index 90a055ce..642590ad 100644 --- a/node_modules/fbjs/lib/TokenizeUtil.js.flow +++ b/node_modules/fbjs/lib/TokenizeUtil.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule TokenizeUtil * @typechecks diff --git a/node_modules/fbjs/lib/TouchEventUtils.js b/node_modules/fbjs/lib/TouchEventUtils.js index 77b28eac..1125d80c 100644 --- a/node_modules/fbjs/lib/TouchEventUtils.js +++ b/node_modules/fbjs/lib/TouchEventUtils.js @@ -2,11 +2,9 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/node_modules/fbjs/lib/TouchEventUtils.js.flow b/node_modules/fbjs/lib/TouchEventUtils.js.flow index b5a73ba6..cff75f16 100644 --- a/node_modules/fbjs/lib/TouchEventUtils.js.flow +++ b/node_modules/fbjs/lib/TouchEventUtils.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule TouchEventUtils */ diff --git a/node_modules/fbjs/lib/URI.js b/node_modules/fbjs/lib/URI.js index bf1bd208..fdd0d7ba 100644 --- a/node_modules/fbjs/lib/URI.js +++ b/node_modules/fbjs/lib/URI.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * */ diff --git a/node_modules/fbjs/lib/URI.js.flow b/node_modules/fbjs/lib/URI.js.flow index 5a901f1c..e5988e9e 100644 --- a/node_modules/fbjs/lib/URI.js.flow +++ b/node_modules/fbjs/lib/URI.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule URI * @flow diff --git a/node_modules/fbjs/lib/UnicodeBidi.js b/node_modules/fbjs/lib/UnicodeBidi.js index 58565762..2cfbc586 100644 --- a/node_modules/fbjs/lib/UnicodeBidi.js +++ b/node_modules/fbjs/lib/UnicodeBidi.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @typechecks * diff --git a/node_modules/fbjs/lib/UnicodeBidi.js.flow b/node_modules/fbjs/lib/UnicodeBidi.js.flow index 42ac9958..5e824a5d 100644 --- a/node_modules/fbjs/lib/UnicodeBidi.js.flow +++ b/node_modules/fbjs/lib/UnicodeBidi.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule UnicodeBidi * @typechecks diff --git a/node_modules/fbjs/lib/UnicodeBidiDirection.js b/node_modules/fbjs/lib/UnicodeBidiDirection.js index c52c8073..c62febea 100644 --- a/node_modules/fbjs/lib/UnicodeBidiDirection.js +++ b/node_modules/fbjs/lib/UnicodeBidiDirection.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @typechecks * diff --git a/node_modules/fbjs/lib/UnicodeBidiDirection.js.flow b/node_modules/fbjs/lib/UnicodeBidiDirection.js.flow index 7d3964b9..1301fedd 100644 --- a/node_modules/fbjs/lib/UnicodeBidiDirection.js.flow +++ b/node_modules/fbjs/lib/UnicodeBidiDirection.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule UnicodeBidiDirection * @typechecks diff --git a/node_modules/fbjs/lib/UnicodeBidiService.js b/node_modules/fbjs/lib/UnicodeBidiService.js index f7189d8e..ae9764ab 100644 --- a/node_modules/fbjs/lib/UnicodeBidiService.js +++ b/node_modules/fbjs/lib/UnicodeBidiService.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @typechecks * diff --git a/node_modules/fbjs/lib/UnicodeBidiService.js.flow b/node_modules/fbjs/lib/UnicodeBidiService.js.flow index 236a2f3d..7999a422 100644 --- a/node_modules/fbjs/lib/UnicodeBidiService.js.flow +++ b/node_modules/fbjs/lib/UnicodeBidiService.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule UnicodeBidiService * @typechecks diff --git a/node_modules/fbjs/lib/UnicodeCJK.js b/node_modules/fbjs/lib/UnicodeCJK.js index 762fa7eb..27d08bd8 100644 --- a/node_modules/fbjs/lib/UnicodeCJK.js +++ b/node_modules/fbjs/lib/UnicodeCJK.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @typechecks */ diff --git a/node_modules/fbjs/lib/UnicodeCJK.js.flow b/node_modules/fbjs/lib/UnicodeCJK.js.flow index 549e57ef..d1b47cac 100644 --- a/node_modules/fbjs/lib/UnicodeCJK.js.flow +++ b/node_modules/fbjs/lib/UnicodeCJK.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule UnicodeCJK * @typechecks diff --git a/node_modules/fbjs/lib/UnicodeHangulKorean.js b/node_modules/fbjs/lib/UnicodeHangulKorean.js index 67252699..f67bd3ce 100644 --- a/node_modules/fbjs/lib/UnicodeHangulKorean.js +++ b/node_modules/fbjs/lib/UnicodeHangulKorean.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @typechecks */ diff --git a/node_modules/fbjs/lib/UnicodeHangulKorean.js.flow b/node_modules/fbjs/lib/UnicodeHangulKorean.js.flow index b278eb97..d184b580 100644 --- a/node_modules/fbjs/lib/UnicodeHangulKorean.js.flow +++ b/node_modules/fbjs/lib/UnicodeHangulKorean.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule UnicodeHangulKorean * @typechecks diff --git a/node_modules/fbjs/lib/UnicodeUtils.js b/node_modules/fbjs/lib/UnicodeUtils.js index f192b521..72bb75d0 100644 --- a/node_modules/fbjs/lib/UnicodeUtils.js +++ b/node_modules/fbjs/lib/UnicodeUtils.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @typechecks */ diff --git a/node_modules/fbjs/lib/UnicodeUtils.js.flow b/node_modules/fbjs/lib/UnicodeUtils.js.flow index 2b34a0c2..a0eebbc8 100644 --- a/node_modules/fbjs/lib/UnicodeUtils.js.flow +++ b/node_modules/fbjs/lib/UnicodeUtils.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule UnicodeUtils * @typechecks diff --git a/node_modules/fbjs/lib/UnicodeUtilsExtra.js b/node_modules/fbjs/lib/UnicodeUtilsExtra.js index a7c9bf3e..d5fb9444 100644 --- a/node_modules/fbjs/lib/UnicodeUtilsExtra.js +++ b/node_modules/fbjs/lib/UnicodeUtilsExtra.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @typechecks */ diff --git a/node_modules/fbjs/lib/UnicodeUtilsExtra.js.flow b/node_modules/fbjs/lib/UnicodeUtilsExtra.js.flow index bb5f3404..dc3ecb70 100644 --- a/node_modules/fbjs/lib/UnicodeUtilsExtra.js.flow +++ b/node_modules/fbjs/lib/UnicodeUtilsExtra.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule UnicodeUtilsExtra * @typechecks diff --git a/node_modules/fbjs/lib/UserAgent.js b/node_modules/fbjs/lib/UserAgent.js index c956d897..24030781 100644 --- a/node_modules/fbjs/lib/UserAgent.js +++ b/node_modules/fbjs/lib/UserAgent.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/node_modules/fbjs/lib/UserAgent.js.flow b/node_modules/fbjs/lib/UserAgent.js.flow index 63d8b96e..61ec1286 100644 --- a/node_modules/fbjs/lib/UserAgent.js.flow +++ b/node_modules/fbjs/lib/UserAgent.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule UserAgent */ diff --git a/node_modules/fbjs/lib/UserAgentData.js b/node_modules/fbjs/lib/UserAgentData.js index 64dca7fb..928fbe3d 100644 --- a/node_modules/fbjs/lib/UserAgentData.js +++ b/node_modules/fbjs/lib/UserAgentData.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/node_modules/fbjs/lib/UserAgentData.js.flow b/node_modules/fbjs/lib/UserAgentData.js.flow index e7f2ae00..bc2e027c 100644 --- a/node_modules/fbjs/lib/UserAgentData.js.flow +++ b/node_modules/fbjs/lib/UserAgentData.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule UserAgentData */ diff --git a/node_modules/fbjs/lib/VersionRange.js b/node_modules/fbjs/lib/VersionRange.js index 5b068c68..93e3e53d 100644 --- a/node_modules/fbjs/lib/VersionRange.js +++ b/node_modules/fbjs/lib/VersionRange.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/node_modules/fbjs/lib/VersionRange.js.flow b/node_modules/fbjs/lib/VersionRange.js.flow index 6aa27ed4..ad64790f 100644 --- a/node_modules/fbjs/lib/VersionRange.js.flow +++ b/node_modules/fbjs/lib/VersionRange.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule VersionRange */ diff --git a/node_modules/fbjs/lib/__mocks__/ErrorUtils.js b/node_modules/fbjs/lib/__mocks__/ErrorUtils.js index f6a9944f..5140ac44 100644 --- a/node_modules/fbjs/lib/__mocks__/ErrorUtils.js +++ b/node_modules/fbjs/lib/__mocks__/ErrorUtils.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/node_modules/fbjs/lib/__mocks__/base62.js b/node_modules/fbjs/lib/__mocks__/base62.js index 560c0fde..24cc91c7 100644 --- a/node_modules/fbjs/lib/__mocks__/base62.js +++ b/node_modules/fbjs/lib/__mocks__/base62.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/node_modules/fbjs/lib/__mocks__/crc32.js b/node_modules/fbjs/lib/__mocks__/crc32.js index 9c4dfb3d..259e4c73 100644 --- a/node_modules/fbjs/lib/__mocks__/crc32.js +++ b/node_modules/fbjs/lib/__mocks__/crc32.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/node_modules/fbjs/lib/__mocks__/fetch.js b/node_modules/fbjs/lib/__mocks__/fetch.js index f9127372..2ae49d6a 100644 --- a/node_modules/fbjs/lib/__mocks__/fetch.js +++ b/node_modules/fbjs/lib/__mocks__/fetch.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @noflow */ diff --git a/node_modules/fbjs/lib/__mocks__/fetchWithRetries.js b/node_modules/fbjs/lib/__mocks__/fetchWithRetries.js index a3309d20..f87746b2 100644 --- a/node_modules/fbjs/lib/__mocks__/fetchWithRetries.js +++ b/node_modules/fbjs/lib/__mocks__/fetchWithRetries.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @noflow */ diff --git a/node_modules/fbjs/lib/__mocks__/nullthrows.js b/node_modules/fbjs/lib/__mocks__/nullthrows.js index fc07fa5b..43422839 100644 --- a/node_modules/fbjs/lib/__mocks__/nullthrows.js +++ b/node_modules/fbjs/lib/__mocks__/nullthrows.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/node_modules/fbjs/lib/_shouldPolyfillES6Collection.js b/node_modules/fbjs/lib/_shouldPolyfillES6Collection.js index f0d2d514..86b177f4 100644 --- a/node_modules/fbjs/lib/_shouldPolyfillES6Collection.js +++ b/node_modules/fbjs/lib/_shouldPolyfillES6Collection.js @@ -2,11 +2,9 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @preventMunge * diff --git a/node_modules/fbjs/lib/_shouldPolyfillES6Collection.js.flow b/node_modules/fbjs/lib/_shouldPolyfillES6Collection.js.flow index 26298dbd..672b5f1f 100644 --- a/node_modules/fbjs/lib/_shouldPolyfillES6Collection.js.flow +++ b/node_modules/fbjs/lib/_shouldPolyfillES6Collection.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule _shouldPolyfillES6Collection * @preventMunge diff --git a/node_modules/fbjs/lib/areEqual.js b/node_modules/fbjs/lib/areEqual.js index ea8437ae..e6a7da3b 100644 --- a/node_modules/fbjs/lib/areEqual.js +++ b/node_modules/fbjs/lib/areEqual.js @@ -2,11 +2,9 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * */ diff --git a/node_modules/fbjs/lib/areEqual.js.flow b/node_modules/fbjs/lib/areEqual.js.flow index 67294f21..06e53ec6 100644 --- a/node_modules/fbjs/lib/areEqual.js.flow +++ b/node_modules/fbjs/lib/areEqual.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule areEqual * @flow diff --git a/node_modules/fbjs/lib/base62.js b/node_modules/fbjs/lib/base62.js index ec18ef99..e2e4d82b 100644 --- a/node_modules/fbjs/lib/base62.js +++ b/node_modules/fbjs/lib/base62.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * */ diff --git a/node_modules/fbjs/lib/base62.js.flow b/node_modules/fbjs/lib/base62.js.flow index a49d73b9..f8151201 100644 --- a/node_modules/fbjs/lib/base62.js.flow +++ b/node_modules/fbjs/lib/base62.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule base62 * @flow diff --git a/node_modules/fbjs/lib/camelize.js b/node_modules/fbjs/lib/camelize.js index cf57a8de..ca010a29 100644 --- a/node_modules/fbjs/lib/camelize.js +++ b/node_modules/fbjs/lib/camelize.js @@ -2,11 +2,9 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @typechecks */ diff --git a/node_modules/fbjs/lib/camelize.js.flow b/node_modules/fbjs/lib/camelize.js.flow index 65972d7b..9b0b4234 100644 --- a/node_modules/fbjs/lib/camelize.js.flow +++ b/node_modules/fbjs/lib/camelize.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule camelize * @typechecks diff --git a/node_modules/fbjs/lib/camelizeStyleName.js b/node_modules/fbjs/lib/camelizeStyleName.js index 30a2d219..6b076a37 100644 --- a/node_modules/fbjs/lib/camelizeStyleName.js +++ b/node_modules/fbjs/lib/camelizeStyleName.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @typechecks */ diff --git a/node_modules/fbjs/lib/camelizeStyleName.js.flow b/node_modules/fbjs/lib/camelizeStyleName.js.flow index c3a85d0f..8883feac 100644 --- a/node_modules/fbjs/lib/camelizeStyleName.js.flow +++ b/node_modules/fbjs/lib/camelizeStyleName.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule camelizeStyleName * @typechecks diff --git a/node_modules/fbjs/lib/concatAllArray.js b/node_modules/fbjs/lib/concatAllArray.js index 00cbfb9e..a9649824 100644 --- a/node_modules/fbjs/lib/concatAllArray.js +++ b/node_modules/fbjs/lib/concatAllArray.js @@ -2,11 +2,9 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @typechecks */ diff --git a/node_modules/fbjs/lib/concatAllArray.js.flow b/node_modules/fbjs/lib/concatAllArray.js.flow index c3327564..41103ff2 100644 --- a/node_modules/fbjs/lib/concatAllArray.js.flow +++ b/node_modules/fbjs/lib/concatAllArray.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule concatAllArray * @typechecks diff --git a/node_modules/fbjs/lib/containsNode.js b/node_modules/fbjs/lib/containsNode.js index ba30d1a7..bee5085e 100644 --- a/node_modules/fbjs/lib/containsNode.js +++ b/node_modules/fbjs/lib/containsNode.js @@ -2,11 +2,9 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * */ diff --git a/node_modules/fbjs/lib/containsNode.js.flow b/node_modules/fbjs/lib/containsNode.js.flow index b4d3ed85..b2117f31 100644 --- a/node_modules/fbjs/lib/containsNode.js.flow +++ b/node_modules/fbjs/lib/containsNode.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule containsNode * @flow diff --git a/node_modules/fbjs/lib/countDistinct.js b/node_modules/fbjs/lib/countDistinct.js index 1089d13b..c8aa925f 100644 --- a/node_modules/fbjs/lib/countDistinct.js +++ b/node_modules/fbjs/lib/countDistinct.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * */ diff --git a/node_modules/fbjs/lib/countDistinct.js.flow b/node_modules/fbjs/lib/countDistinct.js.flow index 9fd9ca49..25676aa8 100644 --- a/node_modules/fbjs/lib/countDistinct.js.flow +++ b/node_modules/fbjs/lib/countDistinct.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule countDistinct * @flow diff --git a/node_modules/fbjs/lib/crc32.js b/node_modules/fbjs/lib/crc32.js index 657f4cc6..806694ca 100644 --- a/node_modules/fbjs/lib/crc32.js +++ b/node_modules/fbjs/lib/crc32.js @@ -2,11 +2,9 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * */ diff --git a/node_modules/fbjs/lib/crc32.js.flow b/node_modules/fbjs/lib/crc32.js.flow index 2ab8c2e6..00cab448 100644 --- a/node_modules/fbjs/lib/crc32.js.flow +++ b/node_modules/fbjs/lib/crc32.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule crc32 * @flow diff --git a/node_modules/fbjs/lib/createArrayFromMixed.js b/node_modules/fbjs/lib/createArrayFromMixed.js index ce027028..879141ae 100644 --- a/node_modules/fbjs/lib/createArrayFromMixed.js +++ b/node_modules/fbjs/lib/createArrayFromMixed.js @@ -2,11 +2,9 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @typechecks */ diff --git a/node_modules/fbjs/lib/createArrayFromMixed.js.flow b/node_modules/fbjs/lib/createArrayFromMixed.js.flow index 9bed48e0..1448db10 100644 --- a/node_modules/fbjs/lib/createArrayFromMixed.js.flow +++ b/node_modules/fbjs/lib/createArrayFromMixed.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule createArrayFromMixed * @typechecks diff --git a/node_modules/fbjs/lib/createNodesFromMarkup.js b/node_modules/fbjs/lib/createNodesFromMarkup.js index 6d226d92..a0c21611 100644 --- a/node_modules/fbjs/lib/createNodesFromMarkup.js +++ b/node_modules/fbjs/lib/createNodesFromMarkup.js @@ -2,11 +2,9 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @typechecks */ diff --git a/node_modules/fbjs/lib/createNodesFromMarkup.js.flow b/node_modules/fbjs/lib/createNodesFromMarkup.js.flow index 5d85d9eb..edaa5b85 100644 --- a/node_modules/fbjs/lib/createNodesFromMarkup.js.flow +++ b/node_modules/fbjs/lib/createNodesFromMarkup.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule createNodesFromMarkup * @typechecks diff --git a/node_modules/fbjs/lib/cx.js b/node_modules/fbjs/lib/cx.js index def43a69..4dedb22e 100644 --- a/node_modules/fbjs/lib/cx.js +++ b/node_modules/fbjs/lib/cx.js @@ -2,11 +2,9 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/node_modules/fbjs/lib/cx.js.flow b/node_modules/fbjs/lib/cx.js.flow index 99ba126f..48f54da6 100644 --- a/node_modules/fbjs/lib/cx.js.flow +++ b/node_modules/fbjs/lib/cx.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule cx */ diff --git a/node_modules/fbjs/lib/distinctArray.js b/node_modules/fbjs/lib/distinctArray.js index ce519246..467ccd2a 100644 --- a/node_modules/fbjs/lib/distinctArray.js +++ b/node_modules/fbjs/lib/distinctArray.js @@ -2,11 +2,9 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * */ diff --git a/node_modules/fbjs/lib/distinctArray.js.flow b/node_modules/fbjs/lib/distinctArray.js.flow index 98479d66..69be0a38 100644 --- a/node_modules/fbjs/lib/distinctArray.js.flow +++ b/node_modules/fbjs/lib/distinctArray.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule distinctArray * @flow diff --git a/node_modules/fbjs/lib/emptyFunction.js b/node_modules/fbjs/lib/emptyFunction.js index 9f06dc06..a46414d2 100644 --- a/node_modules/fbjs/lib/emptyFunction.js +++ b/node_modules/fbjs/lib/emptyFunction.js @@ -2,11 +2,9 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * */ diff --git a/node_modules/fbjs/lib/emptyFunction.js.flow b/node_modules/fbjs/lib/emptyFunction.js.flow index 26076b07..4136b0ec 100644 --- a/node_modules/fbjs/lib/emptyFunction.js.flow +++ b/node_modules/fbjs/lib/emptyFunction.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule emptyFunction * @flow diff --git a/node_modules/fbjs/lib/emptyObject.js b/node_modules/fbjs/lib/emptyObject.js index c3373ff5..64affe5e 100644 --- a/node_modules/fbjs/lib/emptyObject.js +++ b/node_modules/fbjs/lib/emptyObject.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/node_modules/fbjs/lib/emptyObject.js.flow b/node_modules/fbjs/lib/emptyObject.js.flow index bf9cfd8d..1927c2d9 100644 --- a/node_modules/fbjs/lib/emptyObject.js.flow +++ b/node_modules/fbjs/lib/emptyObject.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule emptyObject */ diff --git a/node_modules/fbjs/lib/enumerate.js b/node_modules/fbjs/lib/enumerate.js index 3ca36505..1066042e 100644 --- a/node_modules/fbjs/lib/enumerate.js +++ b/node_modules/fbjs/lib/enumerate.js @@ -6,11 +6,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * */ diff --git a/node_modules/fbjs/lib/enumerate.js.flow b/node_modules/fbjs/lib/enumerate.js.flow index f4112803..39a25605 100644 --- a/node_modules/fbjs/lib/enumerate.js.flow +++ b/node_modules/fbjs/lib/enumerate.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule enumerate * diff --git a/node_modules/fbjs/lib/equalsIterable.js b/node_modules/fbjs/lib/equalsIterable.js index e17c85c9..70ff48da 100644 --- a/node_modules/fbjs/lib/equalsIterable.js +++ b/node_modules/fbjs/lib/equalsIterable.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * */ diff --git a/node_modules/fbjs/lib/equalsIterable.js.flow b/node_modules/fbjs/lib/equalsIterable.js.flow index 9051ce5e..62034e29 100644 --- a/node_modules/fbjs/lib/equalsIterable.js.flow +++ b/node_modules/fbjs/lib/equalsIterable.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule equalsIterable * @flow diff --git a/node_modules/fbjs/lib/equalsSet.js b/node_modules/fbjs/lib/equalsSet.js index d03022f9..0223a9d3 100644 --- a/node_modules/fbjs/lib/equalsSet.js +++ b/node_modules/fbjs/lib/equalsSet.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * * @typechecks diff --git a/node_modules/fbjs/lib/equalsSet.js.flow b/node_modules/fbjs/lib/equalsSet.js.flow index 5ef93fa6..624a2d0b 100644 --- a/node_modules/fbjs/lib/equalsSet.js.flow +++ b/node_modules/fbjs/lib/equalsSet.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule equalsSet * @flow diff --git a/node_modules/fbjs/lib/everyObject.js b/node_modules/fbjs/lib/everyObject.js index bfeb0bd9..9dff1aea 100644 --- a/node_modules/fbjs/lib/everyObject.js +++ b/node_modules/fbjs/lib/everyObject.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * * @typechecks diff --git a/node_modules/fbjs/lib/everyObject.js.flow b/node_modules/fbjs/lib/everyObject.js.flow index 7d172d4f..691f93be 100644 --- a/node_modules/fbjs/lib/everyObject.js.flow +++ b/node_modules/fbjs/lib/everyObject.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule everyObject * @flow diff --git a/node_modules/fbjs/lib/everySet.js b/node_modules/fbjs/lib/everySet.js index c45f6fa3..ef02329a 100644 --- a/node_modules/fbjs/lib/everySet.js +++ b/node_modules/fbjs/lib/everySet.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * * @typechecks diff --git a/node_modules/fbjs/lib/everySet.js.flow b/node_modules/fbjs/lib/everySet.js.flow index cb81fdbf..d43170cd 100644 --- a/node_modules/fbjs/lib/everySet.js.flow +++ b/node_modules/fbjs/lib/everySet.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule everySet * @flow diff --git a/node_modules/fbjs/lib/fetch.js b/node_modules/fbjs/lib/fetch.js index 1d66d84d..5b8f2488 100644 --- a/node_modules/fbjs/lib/fetch.js +++ b/node_modules/fbjs/lib/fetch.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/node_modules/fbjs/lib/fetch.js.flow b/node_modules/fbjs/lib/fetch.js.flow index e29e7b33..fbb65ff6 100644 --- a/node_modules/fbjs/lib/fetch.js.flow +++ b/node_modules/fbjs/lib/fetch.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule fetch */ diff --git a/node_modules/fbjs/lib/fetchWithRetries.js b/node_modules/fbjs/lib/fetchWithRetries.js index 47722ea2..84232a49 100644 --- a/node_modules/fbjs/lib/fetchWithRetries.js +++ b/node_modules/fbjs/lib/fetchWithRetries.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @typechecks * diff --git a/node_modules/fbjs/lib/fetchWithRetries.js.flow b/node_modules/fbjs/lib/fetchWithRetries.js.flow index 967f5c37..225e110f 100644 --- a/node_modules/fbjs/lib/fetchWithRetries.js.flow +++ b/node_modules/fbjs/lib/fetchWithRetries.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule fetchWithRetries * @typechecks diff --git a/node_modules/fbjs/lib/filterObject.js b/node_modules/fbjs/lib/filterObject.js index 891bc162..b63b2cf1 100644 --- a/node_modules/fbjs/lib/filterObject.js +++ b/node_modules/fbjs/lib/filterObject.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/node_modules/fbjs/lib/filterObject.js.flow b/node_modules/fbjs/lib/filterObject.js.flow index c5b6aa79..17f4a3ce 100644 --- a/node_modules/fbjs/lib/filterObject.js.flow +++ b/node_modules/fbjs/lib/filterObject.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule filterObject */ diff --git a/node_modules/fbjs/lib/flatMapArray.js b/node_modules/fbjs/lib/flatMapArray.js index 90daacf6..258ec0f1 100644 --- a/node_modules/fbjs/lib/flatMapArray.js +++ b/node_modules/fbjs/lib/flatMapArray.js @@ -2,11 +2,9 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @typechecks */ diff --git a/node_modules/fbjs/lib/flatMapArray.js.flow b/node_modules/fbjs/lib/flatMapArray.js.flow index 91f16fbc..962e79b1 100644 --- a/node_modules/fbjs/lib/flatMapArray.js.flow +++ b/node_modules/fbjs/lib/flatMapArray.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule flatMapArray * @typechecks diff --git a/node_modules/fbjs/lib/flattenArray.js b/node_modules/fbjs/lib/flattenArray.js index 6824c555..9c170582 100644 --- a/node_modules/fbjs/lib/flattenArray.js +++ b/node_modules/fbjs/lib/flattenArray.js @@ -2,11 +2,9 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @typechecks * diff --git a/node_modules/fbjs/lib/flattenArray.js.flow b/node_modules/fbjs/lib/flattenArray.js.flow index 9c77af43..49d07846 100644 --- a/node_modules/fbjs/lib/flattenArray.js.flow +++ b/node_modules/fbjs/lib/flattenArray.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule flattenArray * @typechecks diff --git a/node_modules/fbjs/lib/focusNode.js b/node_modules/fbjs/lib/focusNode.js index 36a0e53a..1a76b6ad 100644 --- a/node_modules/fbjs/lib/focusNode.js +++ b/node_modules/fbjs/lib/focusNode.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/node_modules/fbjs/lib/focusNode.js.flow b/node_modules/fbjs/lib/focusNode.js.flow index 61e42cf3..07f80df8 100644 --- a/node_modules/fbjs/lib/focusNode.js.flow +++ b/node_modules/fbjs/lib/focusNode.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule focusNode */ diff --git a/node_modules/fbjs/lib/forEachObject.js b/node_modules/fbjs/lib/forEachObject.js index 43cb6c82..0ea64a49 100644 --- a/node_modules/fbjs/lib/forEachObject.js +++ b/node_modules/fbjs/lib/forEachObject.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @typechecks */ diff --git a/node_modules/fbjs/lib/forEachObject.js.flow b/node_modules/fbjs/lib/forEachObject.js.flow index b44c1297..26722f14 100644 --- a/node_modules/fbjs/lib/forEachObject.js.flow +++ b/node_modules/fbjs/lib/forEachObject.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule forEachObject * @typechecks diff --git a/node_modules/fbjs/lib/getActiveElement.js b/node_modules/fbjs/lib/getActiveElement.js index a2715bcc..fe5c5106 100644 --- a/node_modules/fbjs/lib/getActiveElement.js +++ b/node_modules/fbjs/lib/getActiveElement.js @@ -2,11 +2,9 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @typechecks */ diff --git a/node_modules/fbjs/lib/getActiveElement.js.flow b/node_modules/fbjs/lib/getActiveElement.js.flow index f8348a1d..aae831d1 100644 --- a/node_modules/fbjs/lib/getActiveElement.js.flow +++ b/node_modules/fbjs/lib/getActiveElement.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule getActiveElement * @typechecks diff --git a/node_modules/fbjs/lib/getDocumentScrollElement.js b/node_modules/fbjs/lib/getDocumentScrollElement.js index cf40511b..007b8869 100644 --- a/node_modules/fbjs/lib/getDocumentScrollElement.js +++ b/node_modules/fbjs/lib/getDocumentScrollElement.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @typechecks */ @@ -24,6 +22,9 @@ var isWebkit = typeof navigator !== 'undefined' && navigator.userAgent.indexOf(' */ function getDocumentScrollElement(doc) { doc = doc || document; + if (doc.scrollingElement) { + return doc.scrollingElement; + } return !isWebkit && doc.compatMode === 'CSS1Compat' ? doc.documentElement : doc.body; } diff --git a/node_modules/fbjs/lib/getDocumentScrollElement.js.flow b/node_modules/fbjs/lib/getDocumentScrollElement.js.flow index 2711fb16..8ec67c92 100644 --- a/node_modules/fbjs/lib/getDocumentScrollElement.js.flow +++ b/node_modules/fbjs/lib/getDocumentScrollElement.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule getDocumentScrollElement * @typechecks @@ -25,6 +23,9 @@ const isWebkit = typeof navigator !== 'undefined' && navigator.userAgent.indexOf */ function getDocumentScrollElement(doc) { doc = doc || document; + if (doc.scrollingElement) { + return doc.scrollingElement; + } return !isWebkit && doc.compatMode === 'CSS1Compat' ? doc.documentElement : doc.body; } diff --git a/node_modules/fbjs/lib/getElementPosition.js b/node_modules/fbjs/lib/getElementPosition.js index 714f9f3f..5e7067a5 100644 --- a/node_modules/fbjs/lib/getElementPosition.js +++ b/node_modules/fbjs/lib/getElementPosition.js @@ -2,11 +2,9 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @typechecks */ diff --git a/node_modules/fbjs/lib/getElementPosition.js.flow b/node_modules/fbjs/lib/getElementPosition.js.flow index 4ca58da1..b9ca1049 100644 --- a/node_modules/fbjs/lib/getElementPosition.js.flow +++ b/node_modules/fbjs/lib/getElementPosition.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule getElementPosition * @typechecks diff --git a/node_modules/fbjs/lib/getElementRect.js b/node_modules/fbjs/lib/getElementRect.js index 27f85b12..1c65382a 100644 --- a/node_modules/fbjs/lib/getElementRect.js +++ b/node_modules/fbjs/lib/getElementRect.js @@ -2,11 +2,9 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @typechecks */ diff --git a/node_modules/fbjs/lib/getElementRect.js.flow b/node_modules/fbjs/lib/getElementRect.js.flow index 877a6b48..7421f6ab 100644 --- a/node_modules/fbjs/lib/getElementRect.js.flow +++ b/node_modules/fbjs/lib/getElementRect.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule getElementRect * @typechecks diff --git a/node_modules/fbjs/lib/getMarkupWrap.js b/node_modules/fbjs/lib/getMarkupWrap.js index 078c0a67..62db630c 100644 --- a/node_modules/fbjs/lib/getMarkupWrap.js +++ b/node_modules/fbjs/lib/getMarkupWrap.js @@ -2,11 +2,9 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/node_modules/fbjs/lib/getMarkupWrap.js.flow b/node_modules/fbjs/lib/getMarkupWrap.js.flow index fb1510a8..49191ac5 100644 --- a/node_modules/fbjs/lib/getMarkupWrap.js.flow +++ b/node_modules/fbjs/lib/getMarkupWrap.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule getMarkupWrap */ diff --git a/node_modules/fbjs/lib/getScrollPosition.js b/node_modules/fbjs/lib/getScrollPosition.js index d53d614c..2588194b 100644 --- a/node_modules/fbjs/lib/getScrollPosition.js +++ b/node_modules/fbjs/lib/getScrollPosition.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @typechecks */ diff --git a/node_modules/fbjs/lib/getScrollPosition.js.flow b/node_modules/fbjs/lib/getScrollPosition.js.flow index d39f76bc..9740f69d 100644 --- a/node_modules/fbjs/lib/getScrollPosition.js.flow +++ b/node_modules/fbjs/lib/getScrollPosition.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule getScrollPosition * @typechecks diff --git a/node_modules/fbjs/lib/getStyleProperty.js b/node_modules/fbjs/lib/getStyleProperty.js index e3ff9197..b4fb2000 100644 --- a/node_modules/fbjs/lib/getStyleProperty.js +++ b/node_modules/fbjs/lib/getStyleProperty.js @@ -2,11 +2,9 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @typechecks */ diff --git a/node_modules/fbjs/lib/getStyleProperty.js.flow b/node_modules/fbjs/lib/getStyleProperty.js.flow index 265d15b8..30480eb0 100644 --- a/node_modules/fbjs/lib/getStyleProperty.js.flow +++ b/node_modules/fbjs/lib/getStyleProperty.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule getStyleProperty * @typechecks diff --git a/node_modules/fbjs/lib/getUnboundedScrollPosition.js b/node_modules/fbjs/lib/getUnboundedScrollPosition.js index cec5fac9..436630d6 100644 --- a/node_modules/fbjs/lib/getUnboundedScrollPosition.js +++ b/node_modules/fbjs/lib/getUnboundedScrollPosition.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @typechecks */ diff --git a/node_modules/fbjs/lib/getUnboundedScrollPosition.js.flow b/node_modules/fbjs/lib/getUnboundedScrollPosition.js.flow index b20be6c6..68c3f9e7 100644 --- a/node_modules/fbjs/lib/getUnboundedScrollPosition.js.flow +++ b/node_modules/fbjs/lib/getUnboundedScrollPosition.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule getUnboundedScrollPosition * @typechecks diff --git a/node_modules/fbjs/lib/getViewportDimensions.js b/node_modules/fbjs/lib/getViewportDimensions.js index bb683900..8785ed91 100644 --- a/node_modules/fbjs/lib/getViewportDimensions.js +++ b/node_modules/fbjs/lib/getViewportDimensions.js @@ -13,11 +13,9 @@ function getViewportWidth() { return width || 0; } /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * * @typechecks diff --git a/node_modules/fbjs/lib/getViewportDimensions.js.flow b/node_modules/fbjs/lib/getViewportDimensions.js.flow index 4b03807a..0d02b93d 100644 --- a/node_modules/fbjs/lib/getViewportDimensions.js.flow +++ b/node_modules/fbjs/lib/getViewportDimensions.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule getViewportDimensions * @flow diff --git a/node_modules/fbjs/lib/groupArray.js b/node_modules/fbjs/lib/groupArray.js index b6239936..02f9bfa9 100644 --- a/node_modules/fbjs/lib/groupArray.js +++ b/node_modules/fbjs/lib/groupArray.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @typechecks */ diff --git a/node_modules/fbjs/lib/groupArray.js.flow b/node_modules/fbjs/lib/groupArray.js.flow index de532f50..d581db6c 100644 --- a/node_modules/fbjs/lib/groupArray.js.flow +++ b/node_modules/fbjs/lib/groupArray.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule groupArray * @typechecks diff --git a/node_modules/fbjs/lib/hyphenate.js b/node_modules/fbjs/lib/hyphenate.js index 8272a286..4db7826e 100644 --- a/node_modules/fbjs/lib/hyphenate.js +++ b/node_modules/fbjs/lib/hyphenate.js @@ -2,11 +2,9 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @typechecks */ diff --git a/node_modules/fbjs/lib/hyphenate.js.flow b/node_modules/fbjs/lib/hyphenate.js.flow index 36ad14e5..f0209fa9 100644 --- a/node_modules/fbjs/lib/hyphenate.js.flow +++ b/node_modules/fbjs/lib/hyphenate.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule hyphenate * @typechecks diff --git a/node_modules/fbjs/lib/hyphenateStyleName.js b/node_modules/fbjs/lib/hyphenateStyleName.js index c537b6d2..2c91bdc0 100644 --- a/node_modules/fbjs/lib/hyphenateStyleName.js +++ b/node_modules/fbjs/lib/hyphenateStyleName.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @typechecks */ diff --git a/node_modules/fbjs/lib/hyphenateStyleName.js.flow b/node_modules/fbjs/lib/hyphenateStyleName.js.flow index aaf77353..8fa57a1b 100644 --- a/node_modules/fbjs/lib/hyphenateStyleName.js.flow +++ b/node_modules/fbjs/lib/hyphenateStyleName.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule hyphenateStyleName * @typechecks diff --git a/node_modules/fbjs/lib/invariant.js b/node_modules/fbjs/lib/invariant.js index 97b2e79c..1dbe992a 100644 --- a/node_modules/fbjs/lib/invariant.js +++ b/node_modules/fbjs/lib/invariant.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/node_modules/fbjs/lib/invariant.js.flow b/node_modules/fbjs/lib/invariant.js.flow index e2e64ebd..6161cc0a 100644 --- a/node_modules/fbjs/lib/invariant.js.flow +++ b/node_modules/fbjs/lib/invariant.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule invariant */ diff --git a/node_modules/fbjs/lib/isEmpty.js b/node_modules/fbjs/lib/isEmpty.js index 1c7854c0..4c474880 100644 --- a/node_modules/fbjs/lib/isEmpty.js +++ b/node_modules/fbjs/lib/isEmpty.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * */ diff --git a/node_modules/fbjs/lib/isEmpty.js.flow b/node_modules/fbjs/lib/isEmpty.js.flow index d8a12ebd..da8cc027 100644 --- a/node_modules/fbjs/lib/isEmpty.js.flow +++ b/node_modules/fbjs/lib/isEmpty.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule isEmpty * @flow diff --git a/node_modules/fbjs/lib/isNode.js b/node_modules/fbjs/lib/isNode.js index 0ec7b7ee..8286de20 100644 --- a/node_modules/fbjs/lib/isNode.js +++ b/node_modules/fbjs/lib/isNode.js @@ -2,11 +2,9 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @typechecks */ diff --git a/node_modules/fbjs/lib/isNode.js.flow b/node_modules/fbjs/lib/isNode.js.flow index 0b43a087..3a54431c 100644 --- a/node_modules/fbjs/lib/isNode.js.flow +++ b/node_modules/fbjs/lib/isNode.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule isNode * @typechecks diff --git a/node_modules/fbjs/lib/isTextNode.js b/node_modules/fbjs/lib/isTextNode.js index 5f63cbbc..bd1d9b08 100644 --- a/node_modules/fbjs/lib/isTextNode.js +++ b/node_modules/fbjs/lib/isTextNode.js @@ -2,11 +2,9 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @typechecks */ diff --git a/node_modules/fbjs/lib/isTextNode.js.flow b/node_modules/fbjs/lib/isTextNode.js.flow index caa4ae4d..6da9b9c1 100644 --- a/node_modules/fbjs/lib/isTextNode.js.flow +++ b/node_modules/fbjs/lib/isTextNode.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule isTextNode * @typechecks diff --git a/node_modules/fbjs/lib/joinClasses.js b/node_modules/fbjs/lib/joinClasses.js index 89d47abc..b1cbb0ff 100644 --- a/node_modules/fbjs/lib/joinClasses.js +++ b/node_modules/fbjs/lib/joinClasses.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @typechecks static-only */ diff --git a/node_modules/fbjs/lib/joinClasses.js.flow b/node_modules/fbjs/lib/joinClasses.js.flow index e07f2418..5d9110f2 100644 --- a/node_modules/fbjs/lib/joinClasses.js.flow +++ b/node_modules/fbjs/lib/joinClasses.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule joinClasses * @typechecks static-only diff --git a/node_modules/fbjs/lib/keyMirror.js b/node_modules/fbjs/lib/keyMirror.js index 4e46b1f6..59a4b8d0 100644 --- a/node_modules/fbjs/lib/keyMirror.js +++ b/node_modules/fbjs/lib/keyMirror.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @typechecks static-only */ diff --git a/node_modules/fbjs/lib/keyMirror.js.flow b/node_modules/fbjs/lib/keyMirror.js.flow index 3b09341a..8f742140 100644 --- a/node_modules/fbjs/lib/keyMirror.js.flow +++ b/node_modules/fbjs/lib/keyMirror.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule keyMirror * @typechecks static-only diff --git a/node_modules/fbjs/lib/keyMirrorRecursive.js b/node_modules/fbjs/lib/keyMirrorRecursive.js index 3abe772b..8110bef1 100644 --- a/node_modules/fbjs/lib/keyMirrorRecursive.js +++ b/node_modules/fbjs/lib/keyMirrorRecursive.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * weak * @typechecks diff --git a/node_modules/fbjs/lib/keyMirrorRecursive.js.flow b/node_modules/fbjs/lib/keyMirrorRecursive.js.flow index 8a700b27..43cd4ea9 100644 --- a/node_modules/fbjs/lib/keyMirrorRecursive.js.flow +++ b/node_modules/fbjs/lib/keyMirrorRecursive.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule keyMirrorRecursive * @flow weak diff --git a/node_modules/fbjs/lib/keyOf.js b/node_modules/fbjs/lib/keyOf.js index 23c2881a..37da48a3 100644 --- a/node_modules/fbjs/lib/keyOf.js +++ b/node_modules/fbjs/lib/keyOf.js @@ -2,11 +2,9 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/node_modules/fbjs/lib/keyOf.js.flow b/node_modules/fbjs/lib/keyOf.js.flow index 2c4f8e5d..e7c56357 100644 --- a/node_modules/fbjs/lib/keyOf.js.flow +++ b/node_modules/fbjs/lib/keyOf.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule keyOf */ diff --git a/node_modules/fbjs/lib/mapObject.js b/node_modules/fbjs/lib/mapObject.js index 16b7c5b9..6d3d93f3 100644 --- a/node_modules/fbjs/lib/mapObject.js +++ b/node_modules/fbjs/lib/mapObject.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/node_modules/fbjs/lib/mapObject.js.flow b/node_modules/fbjs/lib/mapObject.js.flow index c5ca4c08..00922d9f 100644 --- a/node_modules/fbjs/lib/mapObject.js.flow +++ b/node_modules/fbjs/lib/mapObject.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule mapObject */ diff --git a/node_modules/fbjs/lib/maxBy.js b/node_modules/fbjs/lib/maxBy.js index dc6b3a62..7e33e58e 100644 --- a/node_modules/fbjs/lib/maxBy.js +++ b/node_modules/fbjs/lib/maxBy.js @@ -2,11 +2,9 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * */ diff --git a/node_modules/fbjs/lib/maxBy.js.flow b/node_modules/fbjs/lib/maxBy.js.flow index 38af0c70..5b793d26 100644 --- a/node_modules/fbjs/lib/maxBy.js.flow +++ b/node_modules/fbjs/lib/maxBy.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule maxBy * @flow diff --git a/node_modules/fbjs/lib/memoizeStringOnly.js b/node_modules/fbjs/lib/memoizeStringOnly.js index 1431e27b..26f8ca73 100644 --- a/node_modules/fbjs/lib/memoizeStringOnly.js +++ b/node_modules/fbjs/lib/memoizeStringOnly.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * * @typechecks static-only diff --git a/node_modules/fbjs/lib/memoizeStringOnly.js.flow b/node_modules/fbjs/lib/memoizeStringOnly.js.flow index bceb694b..a8a22178 100644 --- a/node_modules/fbjs/lib/memoizeStringOnly.js.flow +++ b/node_modules/fbjs/lib/memoizeStringOnly.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule memoizeStringOnly * @flow diff --git a/node_modules/fbjs/lib/minBy.js b/node_modules/fbjs/lib/minBy.js index 73091158..b16154ea 100644 --- a/node_modules/fbjs/lib/minBy.js +++ b/node_modules/fbjs/lib/minBy.js @@ -2,11 +2,9 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * */ diff --git a/node_modules/fbjs/lib/minBy.js.flow b/node_modules/fbjs/lib/minBy.js.flow index a76aec4f..0417c793 100644 --- a/node_modules/fbjs/lib/minBy.js.flow +++ b/node_modules/fbjs/lib/minBy.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule minBy * @flow diff --git a/node_modules/fbjs/lib/monitorCodeUse.js b/node_modules/fbjs/lib/monitorCodeUse.js index d8682982..cd99682b 100644 --- a/node_modules/fbjs/lib/monitorCodeUse.js +++ b/node_modules/fbjs/lib/monitorCodeUse.js @@ -1,10 +1,8 @@ /** - * Copyright 2014-2015, Facebook, Inc. - * All rights reserved. + * Copyright (c) 2014-present, Facebook, Inc. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/node_modules/fbjs/lib/monitorCodeUse.js.flow b/node_modules/fbjs/lib/monitorCodeUse.js.flow index 1eabaf63..59d9defc 100644 --- a/node_modules/fbjs/lib/monitorCodeUse.js.flow +++ b/node_modules/fbjs/lib/monitorCodeUse.js.flow @@ -1,10 +1,8 @@ /** - * Copyright 2014-2015, Facebook, Inc. - * All rights reserved. + * Copyright (c) 2014-present, Facebook, Inc. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule monitorCodeUse */ diff --git a/node_modules/fbjs/lib/nativeRequestAnimationFrame.js b/node_modules/fbjs/lib/nativeRequestAnimationFrame.js index ea9d61de..4361eee2 100644 --- a/node_modules/fbjs/lib/nativeRequestAnimationFrame.js +++ b/node_modules/fbjs/lib/nativeRequestAnimationFrame.js @@ -2,11 +2,9 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/node_modules/fbjs/lib/nativeRequestAnimationFrame.js.flow b/node_modules/fbjs/lib/nativeRequestAnimationFrame.js.flow index 869abda7..8f3f63b0 100644 --- a/node_modules/fbjs/lib/nativeRequestAnimationFrame.js.flow +++ b/node_modules/fbjs/lib/nativeRequestAnimationFrame.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule nativeRequestAnimationFrame */ diff --git a/node_modules/fbjs/lib/nullthrows.js b/node_modules/fbjs/lib/nullthrows.js index 0901c27f..6e05c024 100644 --- a/node_modules/fbjs/lib/nullthrows.js +++ b/node_modules/fbjs/lib/nullthrows.js @@ -2,11 +2,9 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * */ diff --git a/node_modules/fbjs/lib/nullthrows.js.flow b/node_modules/fbjs/lib/nullthrows.js.flow index 13227b0f..bbfc4a13 100644 --- a/node_modules/fbjs/lib/nullthrows.js.flow +++ b/node_modules/fbjs/lib/nullthrows.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule nullthrows * @flow diff --git a/node_modules/fbjs/lib/partitionArray.js b/node_modules/fbjs/lib/partitionArray.js index b8ed62da..718f8d1c 100644 --- a/node_modules/fbjs/lib/partitionArray.js +++ b/node_modules/fbjs/lib/partitionArray.js @@ -2,11 +2,9 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @typechecks * diff --git a/node_modules/fbjs/lib/partitionArray.js.flow b/node_modules/fbjs/lib/partitionArray.js.flow index 0b7d5fa0..b9f555de 100644 --- a/node_modules/fbjs/lib/partitionArray.js.flow +++ b/node_modules/fbjs/lib/partitionArray.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule partitionArray * @typechecks diff --git a/node_modules/fbjs/lib/performance.js b/node_modules/fbjs/lib/performance.js index a038a797..51a50e58 100644 --- a/node_modules/fbjs/lib/performance.js +++ b/node_modules/fbjs/lib/performance.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @typechecks */ diff --git a/node_modules/fbjs/lib/performance.js.flow b/node_modules/fbjs/lib/performance.js.flow index 0e67e7ae..fa27c1a8 100644 --- a/node_modules/fbjs/lib/performance.js.flow +++ b/node_modules/fbjs/lib/performance.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule performance * @typechecks diff --git a/node_modules/fbjs/lib/performanceNow.js b/node_modules/fbjs/lib/performanceNow.js index 925df068..a27e3c06 100644 --- a/node_modules/fbjs/lib/performanceNow.js +++ b/node_modules/fbjs/lib/performanceNow.js @@ -2,11 +2,9 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @typechecks */ diff --git a/node_modules/fbjs/lib/performanceNow.js.flow b/node_modules/fbjs/lib/performanceNow.js.flow index afa15974..3486f30e 100644 --- a/node_modules/fbjs/lib/performanceNow.js.flow +++ b/node_modules/fbjs/lib/performanceNow.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule performanceNow * @typechecks diff --git a/node_modules/fbjs/lib/removeFromArray.js b/node_modules/fbjs/lib/removeFromArray.js index 7693b9d0..0c0ba490 100644 --- a/node_modules/fbjs/lib/removeFromArray.js +++ b/node_modules/fbjs/lib/removeFromArray.js @@ -2,11 +2,9 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @typechecks * diff --git a/node_modules/fbjs/lib/removeFromArray.js.flow b/node_modules/fbjs/lib/removeFromArray.js.flow index 9ac99b13..71d757c5 100644 --- a/node_modules/fbjs/lib/removeFromArray.js.flow +++ b/node_modules/fbjs/lib/removeFromArray.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule removeFromArray * @typechecks diff --git a/node_modules/fbjs/lib/requestAnimationFrame.js b/node_modules/fbjs/lib/requestAnimationFrame.js index 68000b9e..a4ae187c 100644 --- a/node_modules/fbjs/lib/requestAnimationFrame.js +++ b/node_modules/fbjs/lib/requestAnimationFrame.js @@ -1,12 +1,10 @@ 'use strict'; /** - * Copyright 2014-2015, Facebook, Inc. - * All rights reserved. + * Copyright (c) 2014-present, Facebook, Inc. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/node_modules/fbjs/lib/requestAnimationFrame.js.flow b/node_modules/fbjs/lib/requestAnimationFrame.js.flow index 49ddb96e..f26b0a87 100644 --- a/node_modules/fbjs/lib/requestAnimationFrame.js.flow +++ b/node_modules/fbjs/lib/requestAnimationFrame.js.flow @@ -1,10 +1,8 @@ /** - * Copyright 2014-2015, Facebook, Inc. - * All rights reserved. + * Copyright (c) 2014-present, Facebook, Inc. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule requestAnimationFrame */ diff --git a/node_modules/fbjs/lib/resolveImmediate.js b/node_modules/fbjs/lib/resolveImmediate.js index a502b72c..e2d32274 100644 --- a/node_modules/fbjs/lib/resolveImmediate.js +++ b/node_modules/fbjs/lib/resolveImmediate.js @@ -4,11 +4,9 @@ var Promise = require("./Promise"); /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * */ diff --git a/node_modules/fbjs/lib/resolveImmediate.js.flow b/node_modules/fbjs/lib/resolveImmediate.js.flow index 20668b22..650ce02c 100644 --- a/node_modules/fbjs/lib/resolveImmediate.js.flow +++ b/node_modules/fbjs/lib/resolveImmediate.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule resolveImmediate * @flow diff --git a/node_modules/fbjs/lib/setImmediate.js b/node_modules/fbjs/lib/setImmediate.js index 5ed32979..75dbfa29 100644 --- a/node_modules/fbjs/lib/setImmediate.js +++ b/node_modules/fbjs/lib/setImmediate.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/node_modules/fbjs/lib/setImmediate.js.flow b/node_modules/fbjs/lib/setImmediate.js.flow index 6b8fcbab..c16db67d 100644 --- a/node_modules/fbjs/lib/setImmediate.js.flow +++ b/node_modules/fbjs/lib/setImmediate.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule setImmediate */ diff --git a/node_modules/fbjs/lib/shallowEqual.js b/node_modules/fbjs/lib/shallowEqual.js index b7899474..53ec43ea 100644 --- a/node_modules/fbjs/lib/shallowEqual.js +++ b/node_modules/fbjs/lib/shallowEqual.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @typechecks * diff --git a/node_modules/fbjs/lib/shallowEqual.js.flow b/node_modules/fbjs/lib/shallowEqual.js.flow index 8b4e3172..6e72c9c9 100644 --- a/node_modules/fbjs/lib/shallowEqual.js.flow +++ b/node_modules/fbjs/lib/shallowEqual.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule shallowEqual * @typechecks diff --git a/node_modules/fbjs/lib/someObject.js b/node_modules/fbjs/lib/someObject.js index e939dc77..3ea514f6 100644 --- a/node_modules/fbjs/lib/someObject.js +++ b/node_modules/fbjs/lib/someObject.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * * @typechecks diff --git a/node_modules/fbjs/lib/someObject.js.flow b/node_modules/fbjs/lib/someObject.js.flow index 44afe5a6..2ee3bbdd 100644 --- a/node_modules/fbjs/lib/someObject.js.flow +++ b/node_modules/fbjs/lib/someObject.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule someObject * @flow diff --git a/node_modules/fbjs/lib/someSet.js b/node_modules/fbjs/lib/someSet.js index 41393d27..0f15081e 100644 --- a/node_modules/fbjs/lib/someSet.js +++ b/node_modules/fbjs/lib/someSet.js @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * * @typechecks diff --git a/node_modules/fbjs/lib/someSet.js.flow b/node_modules/fbjs/lib/someSet.js.flow index 74142b64..6337b03b 100644 --- a/node_modules/fbjs/lib/someSet.js.flow +++ b/node_modules/fbjs/lib/someSet.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule someSet * @flow diff --git a/node_modules/fbjs/lib/sprintf.js b/node_modules/fbjs/lib/sprintf.js index 98a65c61..7abff283 100644 --- a/node_modules/fbjs/lib/sprintf.js +++ b/node_modules/fbjs/lib/sprintf.js @@ -2,11 +2,9 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @typechecks */ diff --git a/node_modules/fbjs/lib/sprintf.js.flow b/node_modules/fbjs/lib/sprintf.js.flow index 06d097c8..eb28aa0c 100644 --- a/node_modules/fbjs/lib/sprintf.js.flow +++ b/node_modules/fbjs/lib/sprintf.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule sprintf * @typechecks diff --git a/node_modules/fbjs/lib/warning.js b/node_modules/fbjs/lib/warning.js index 502bb610..551a57fd 100644 --- a/node_modules/fbjs/lib/warning.js +++ b/node_modules/fbjs/lib/warning.js @@ -1,10 +1,8 @@ /** - * Copyright 2014-2015, Facebook, Inc. - * All rights reserved. + * Copyright (c) 2014-present, Facebook, Inc. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ @@ -22,45 +20,43 @@ var emptyFunction = require('./emptyFunction'); var warning = emptyFunction; if (process.env.NODE_ENV !== 'production') { - (function () { - var printWarning = function printWarning(format) { - for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - args[_key - 1] = arguments[_key]; + var printWarning = function printWarning(format) { + for (var _len = arguments.length, args = 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.error(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) {} + }; + + warning = function warning(condition, format) { + if (format === undefined) { + throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument'); + } + + if (format.indexOf('Failed Composite propType: ') === 0) { + return; // Ignore CompositeComponent proptype check. + } + + if (!condition) { + for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) { + args[_key2 - 2] = arguments[_key2]; } - var argIndex = 0; - var message = 'Warning: ' + format.replace(/%s/g, function () { - return args[argIndex++]; - }); - if (typeof console !== 'undefined') { - console.error(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) {} - }; - - warning = function warning(condition, format) { - if (format === undefined) { - throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument'); - } - - if (format.indexOf('Failed Composite propType: ') === 0) { - return; // Ignore CompositeComponent proptype check. - } - - if (!condition) { - for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) { - args[_key2 - 2] = arguments[_key2]; - } - - printWarning.apply(undefined, [format].concat(args)); - } - }; - })(); + printWarning.apply(undefined, [format].concat(args)); + } + }; } module.exports = warning; \ No newline at end of file diff --git a/node_modules/fbjs/lib/warning.js.flow b/node_modules/fbjs/lib/warning.js.flow index a42d54bf..78a0c30d 100644 --- a/node_modules/fbjs/lib/warning.js.flow +++ b/node_modules/fbjs/lib/warning.js.flow @@ -1,10 +1,8 @@ /** - * Copyright 2014-2015, Facebook, Inc. - * All rights reserved. + * Copyright (c) 2014-present, Facebook, Inc. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule warning */ diff --git a/node_modules/fbjs/lib/xhrSimpleDataSerializer.js b/node_modules/fbjs/lib/xhrSimpleDataSerializer.js index 0ca8f578..4d7f7a39 100644 --- a/node_modules/fbjs/lib/xhrSimpleDataSerializer.js +++ b/node_modules/fbjs/lib/xhrSimpleDataSerializer.js @@ -2,11 +2,9 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/node_modules/fbjs/lib/xhrSimpleDataSerializer.js.flow b/node_modules/fbjs/lib/xhrSimpleDataSerializer.js.flow index d4d381f2..de2c3931 100644 --- a/node_modules/fbjs/lib/xhrSimpleDataSerializer.js.flow +++ b/node_modules/fbjs/lib/xhrSimpleDataSerializer.js.flow @@ -1,10 +1,8 @@ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule xhrSimpleDataSerializer */ diff --git a/node_modules/fbjs/package.json b/node_modules/fbjs/package.json index 04a471ec..a2230fb5 100644 --- a/node_modules/fbjs/package.json +++ b/node_modules/fbjs/package.json @@ -1,41 +1,25 @@ { "_args": [ [ - { - "raw": "fbjs@^0.8.9", - "scope": null, - "escapedName": "fbjs", - "name": "fbjs", - "rawSpec": "^0.8.9", - "spec": ">=0.8.9 <0.9.0", - "type": "range" - }, - "/Users/Michal/Desktop/dev/react-slider/node_modules/create-react-class" + "fbjs@0.8.16", + "/Users/Michal/Desktop/dev/react-slider" ] ], - "_from": "fbjs@>=0.8.9 <0.9.0", - "_id": "fbjs@0.8.12", - "_inCache": true, + "_from": "fbjs@0.8.16", + "_id": "fbjs@0.8.16", + "_inBundle": false, + "_integrity": "sha1-XmdDL1UNxBtXK/VYR7ispk5TN9s=", "_location": "/fbjs", - "_nodeVersion": "4.6.2", - "_npmOperationalInternal": { - "host": "packages-12-west.internal.npmjs.com", - "tmp": "tmp/fbjs-0.8.12.tgz_1490833836800_0.06224537012167275" - }, - "_npmUser": { - "name": "zpao", - "email": "paul@oshannessy.com" - }, - "_npmVersion": "2.15.11", "_phantomChildren": {}, "_requested": { - "raw": "fbjs@^0.8.9", - "scope": null, - "escapedName": "fbjs", + "type": "version", + "registry": true, + "raw": "fbjs@0.8.16", "name": "fbjs", - "rawSpec": "^0.8.9", - "spec": ">=0.8.9 <0.9.0", - "type": "range" + "escapedName": "fbjs", + "rawSpec": "0.8.16", + "saveSpec": null, + "fetchSpec": "0.8.16" }, "_requiredBy": [ "/create-react-class", @@ -43,11 +27,9 @@ "/react", "/react-dom" ], - "_resolved": "https://registry.npmjs.org/fbjs/-/fbjs-0.8.12.tgz", - "_shasum": "10b5d92f76d45575fd63a217d4ea02bea2f8ed04", - "_shrinkwrap": null, - "_spec": "fbjs@^0.8.9", - "_where": "/Users/Michal/Desktop/dev/react-slider/node_modules/create-react-class", + "_resolved": "https://registry.npmjs.org/fbjs/-/fbjs-0.8.16.tgz", + "_spec": "0.8.16", + "_where": "/Users/Michal/Desktop/dev/react-slider", "browserify": { "transform": [ "loose-envify" @@ -86,21 +68,14 @@ "node": ">=4.x", "npm": ">=2.x" }, - "directories": {}, - "dist": { - "shasum": "10b5d92f76d45575fd63a217d4ea02bea2f8ed04", - "tarball": "https://registry.npmjs.org/fbjs/-/fbjs-0.8.12.tgz" - }, "files": [ "LICENSE", - "PATENTS", "README.md", "flow/", "index.js", "lib/", "module-map.json" ], - "gitHead": "a487920ee52e81b0feda06cc58fa29d04ab057f7", "homepage": "https://github.com/facebook/fbjs#readme", "jest": { "modulePathIgnorePatterns": [ @@ -122,46 +97,9 @@ "/src/(?!(__forks__/fetch.js$|fetch/))" ] }, - "license": "BSD-3-Clause", + "license": "MIT", "main": "index.js", - "maintainers": [ - { - "name": "fb", - "email": "opensource+npm@fb.com" - }, - { - "name": "josephsavona", - "email": "joesavona@fb.com" - }, - { - "name": "spicyj", - "email": "ben@benalpert.com" - }, - { - "name": "steveluscher", - "email": "steveluscher@fb.com" - }, - { - "name": "wincent", - "email": "greg@hurrell.net" - }, - { - "name": "yungsters", - "email": "yungsters@gmail.com" - }, - { - "name": "yuzhi", - "email": "yuzhi.z@gmail.com" - }, - { - "name": "zpao", - "email": "paul@oshannessy.com" - } - ], "name": "fbjs", - "optionalDependencies": {}, - "readme": "# FBJS\n\n## Purpose\n\nTo make it easier for Facebook to share and consume our own JavaScript. Primarily this will allow us to ship code without worrying too much about where it lives, keeping with the spirit of `@providesModule` but working in the broader JavaScript ecosystem.\n\n**Note:** If you are consuming the code here and you are not also a Facebook project, be prepared for a bad time. APIs may appear or disappear and we may not follow semver strictly, though we will do our best to. This library is being published with our use cases in mind and is not necessarily meant to be consumed by the broader public. In order for us to move fast and ship projects like React and Relay, we've made the decision to not support everybody. We probably won't take your feature requests unless they align with our needs. There will be overlap in functionality here and in other open source projects.\n\n## Usage\n\nAny `@providesModule` modules that are used by your project should be added to `src/`. They will be built and added to `module-map.json`. This file will contain a map from `@providesModule` name to what will be published as `fbjs`. The `module-map.json` file can then be consumed in your own project, along with the [rewrite-modules](https://github.com/facebook/fbjs/blob/master/babel-preset/plugins/rewrite-modules.js) Babel plugin (which we'll publish with this), to rewrite requires in your own project. Then, just make sure `fbjs` is a dependency in your `package.json` and your package will consume the shared code.\n\n```js\n// Before transform\nconst emptyFunction = require('emptyFunction');\n// After transform\nconst emptyFunction = require('fbjs/lib/emptyFunction');\n```\n\nSee React for an example of this. *Coming soon!*\n\n## Building\n\nIt's as easy as just running gulp. This assumes you've also done `npm install -g gulp`.\n\n```sh\ngulp\n```\n\nAlternatively `npm run build` will also work.\n\n### Layout\n\nRight now these packages represent a subset of packages that we use internally at Facebook. Mostly these are support libraries used when shipping larger libraries, like React and Relay, or products. Each of these packages is in its own directory under `src/`.\n\n### Process\n\nSince we use `@providesModule`, we need to rewrite requires to be relative. Thanks to `@providesModule` requiring global uniqueness, we can do this easily. Eventually we'll try to make this part of the process go away by making more projects use CommonJS.\n\n\n## TODO\n\n- Flow: Ideally we'd ship our original files with type annotations, however that's not doable right now. We have a couple options:\n - Make sure our transpilation step converts inline type annotations to the comment format.\n - Make our build process also build Flow interface files which we can ship to npm.\n- Split into multiple packages. This will be better for more concise versioning, otherwise we'll likely just be shipping lots of major versions.\n", - "readmeFilename": "README.md", "repository": { "type": "git", "url": "git+https://github.com/facebook/fbjs.git" @@ -176,5 +114,5 @@ "test-babel-presets": "cd babel-preset && npm install && npm test", "typecheck": "flow check src" }, - "version": "0.8.12" + "version": "0.8.16" } diff --git a/node_modules/iconv-lite/.travis.yml b/node_modules/iconv-lite/.travis.yml index 0e82b1e8..3eab7fdb 100644 --- a/node_modules/iconv-lite/.travis.yml +++ b/node_modules/iconv-lite/.travis.yml @@ -7,6 +7,7 @@ - "iojs" - "4" - "6" + - "8" - "node" diff --git a/node_modules/iconv-lite/Changelog.md b/node_modules/iconv-lite/Changelog.md index 6dcc346b..64aae34b 100644 --- a/node_modules/iconv-lite/Changelog.md +++ b/node_modules/iconv-lite/Changelog.md @@ -1,4 +1,16 @@ +# 0.4.19 / 2017-09-09 + + * Fixed iso8859-1 codec regression in handling untranslatable characters (#162, caused by #147) + * Re-generated windows1255 codec, because it was updated in iconv project + * Fixed grammar in error message when iconv-lite is loaded with encoding other than utf8 + + +# 0.4.18 / 2017-06-13 + + * Fixed CESU-8 regression in Node v8. + + # 0.4.17 / 2017-04-22 * Updated typescript definition file to support Angular 2 AoT mode (#153 by @larssn) diff --git a/node_modules/iconv-lite/encodings/internal.js b/node_modules/iconv-lite/encodings/internal.js index cea067c1..b0adf6a9 100644 --- a/node_modules/iconv-lite/encodings/internal.js +++ b/node_modules/iconv-lite/encodings/internal.js @@ -13,8 +13,6 @@ module.exports = { utf16le: "ucs2", binary: { type: "_internal" }, - iso88591: "binary", - base64: { type: "_internal" }, hex: { type: "_internal" }, @@ -35,7 +33,7 @@ function InternalCodec(codecOptions, iconv) { this.encoder = InternalEncoderCesu8; // Add decoder for versions of Node not supporting CESU-8 - if (new Buffer("eda080", 'hex').toString().length == 3) { + if (new Buffer('eda0bdedb2a9', 'hex').toString() !== '💩') { this.decoder = InternalDecoderCesu8; this.defaultCharUnicode = iconv.defaultCharUnicode; } diff --git a/node_modules/iconv-lite/encodings/sbcs-data-generated.js b/node_modules/iconv-lite/encodings/sbcs-data-generated.js index a30ee2c7..9b482360 100644 --- a/node_modules/iconv-lite/encodings/sbcs-data-generated.js +++ b/node_modules/iconv-lite/encodings/sbcs-data-generated.js @@ -38,6 +38,7 @@ module.exports = { "1256": "windows1256", "1257": "windows1257", "1258": "windows1258", + "28591": "iso88591", "28592": "iso88592", "28593": "iso88593", "28594": "iso88594", @@ -90,7 +91,7 @@ module.exports = { "cp1254": "windows1254", "windows1255": { "type": "_sbcs", - "chars": "€�‚ƒ„…†‡ˆ‰�‹�����‘’“”•–—˜™�›���� ¡¢£₪¥¦§¨©×«¬­®¯°±²³´µ¶·¸¹÷»¼½¾¿ְֱֲֳִֵֶַָֹ�ֻּֽ־ֿ׀ׁׂ׃װױײ׳״�������אבגדהוזחטיךכלםמןנסעףפץצקרשת��‎‏�" + "chars": "€�‚ƒ„…†‡ˆ‰�‹�����‘’“”•–—˜™�›���� ¡¢£₪¥¦§¨©×«¬­®¯°±²³´µ¶·¸¹÷»¼½¾¿ְֱֲֳִֵֶַָֹֺֻּֽ־ֿ׀ׁׂ׃װױײ׳״�������אבגדהוזחטיךכלםמןנסעףפץצקרשת��‎‏�" }, "win1255": "windows1255", "cp1255": "windows1255", @@ -112,6 +113,11 @@ module.exports = { }, "win1258": "windows1258", "cp1258": "windows1258", + "iso88591": { + "type": "_sbcs", + "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ" + }, + "cp28591": "iso88591", "iso88592": { "type": "_sbcs", "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ Ą˘Ł¤ĽŚ§¨ŠŞŤŹ­ŽŻ°ą˛ł´ľśˇ¸šşťź˝žżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖ×ŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőö÷řůúűüýţ˙" diff --git a/node_modules/iconv-lite/encodings/sbcs-data.js b/node_modules/iconv-lite/encodings/sbcs-data.js index beecd236..2d6f846a 100644 --- a/node_modules/iconv-lite/encodings/sbcs-data.js +++ b/node_modules/iconv-lite/encodings/sbcs-data.js @@ -84,8 +84,6 @@ module.exports = { "cp819": "iso88591", "ibm819": "iso88591", - "cp28591": "iso88591", - "28591": "iso88591", "cyrillic": "iso88595", diff --git a/node_modules/iconv-lite/lib/index.js b/node_modules/iconv-lite/lib/index.js index 10aced42..9a524721 100644 --- a/node_modules/iconv-lite/lib/index.js +++ b/node_modules/iconv-lite/lib/index.js @@ -144,5 +144,5 @@ if (nodeVer) { } if ("Ā" != "\u0100") { - console.error("iconv-lite warning: javascript files are loaded not with utf-8 encoding. See https://github.com/ashtuchkin/iconv-lite/wiki/Javascript-source-file-encodings for more info."); + console.error("iconv-lite warning: javascript files use encoding different from utf-8. See https://github.com/ashtuchkin/iconv-lite/wiki/Javascript-source-file-encodings for more info."); } diff --git a/node_modules/iconv-lite/package.json b/node_modules/iconv-lite/package.json index 88170152..a3e61a12 100644 --- a/node_modules/iconv-lite/package.json +++ b/node_modules/iconv-lite/package.json @@ -1,50 +1,32 @@ { "_args": [ [ - { - "raw": "iconv-lite@~0.4.13", - "scope": null, - "escapedName": "iconv-lite", - "name": "iconv-lite", - "rawSpec": "~0.4.13", - "spec": ">=0.4.13 <0.5.0", - "type": "range" - }, - "/Users/Michal/Desktop/dev/react-slider/node_modules/encoding" + "iconv-lite@0.4.19", + "/Users/Michal/Desktop/dev/react-slider" ] ], - "_from": "iconv-lite@>=0.4.13 <0.5.0", - "_id": "iconv-lite@0.4.17", - "_inCache": true, + "_from": "iconv-lite@0.4.19", + "_id": "iconv-lite@0.4.19", + "_inBundle": false, + "_integrity": "sha512-oTZqweIP51xaGPI4uPa56/Pri/480R+mo7SeU+YETByQNhDG55ycFyNLIgta9vXhILrxXDmF7ZGhqZIcuN0gJQ==", "_location": "/iconv-lite", - "_nodeVersion": "6.10.2", - "_npmOperationalInternal": { - "host": "packages-12-west.internal.npmjs.com", - "tmp": "tmp/iconv-lite-0.4.17.tgz_1493615411939_0.8651245310902596" - }, - "_npmUser": { - "name": "ashtuchkin", - "email": "ashtuchkin@gmail.com" - }, - "_npmVersion": "3.10.10", "_phantomChildren": {}, "_requested": { - "raw": "iconv-lite@~0.4.13", - "scope": null, - "escapedName": "iconv-lite", + "type": "version", + "registry": true, + "raw": "iconv-lite@0.4.19", "name": "iconv-lite", - "rawSpec": "~0.4.13", - "spec": ">=0.4.13 <0.5.0", - "type": "range" + "escapedName": "iconv-lite", + "rawSpec": "0.4.19", + "saveSpec": null, + "fetchSpec": "0.4.19" }, "_requiredBy": [ "/encoding" ], - "_resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.17.tgz", - "_shasum": "4fdaa3b38acbc2c031b045d0edcdfe1ecab18c8d", - "_shrinkwrap": null, - "_spec": "iconv-lite@~0.4.13", - "_where": "/Users/Michal/Desktop/dev/react-slider/node_modules/encoding", + "_resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.19.tgz", + "_spec": "0.4.19", + "_where": "/Users/Michal/Desktop/dev/react-slider", "author": { "name": "Alexander Shtuchkin", "email": "ashtuchkin@gmail.com" @@ -106,7 +88,6 @@ "url": "https://github.com/nleush" } ], - "dependencies": {}, "description": "Convert character encodings in pure javascript.", "devDependencies": { "async": "*", @@ -118,15 +99,9 @@ "semver": "*", "unorm": "*" }, - "directories": {}, - "dist": { - "shasum": "4fdaa3b38acbc2c031b045d0edcdfe1ecab18c8d", - "tarball": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.17.tgz" - }, "engines": { "node": ">=0.10.0" }, - "gitHead": "64d1e3d7403bbb5414966de83d325419e7ea14e2", "homepage": "https://github.com/ashtuchkin/iconv-lite", "keywords": [ "iconv", @@ -136,16 +111,7 @@ ], "license": "MIT", "main": "./lib/index.js", - "maintainers": [ - { - "name": "ashtuchkin", - "email": "ashtuchkin@gmail.com" - } - ], "name": "iconv-lite", - "optionalDependencies": {}, - "readme": "## Pure JS character encoding conversion [![Build Status](https://travis-ci.org/ashtuchkin/iconv-lite.svg?branch=master)](https://travis-ci.org/ashtuchkin/iconv-lite)\n\n * Doesn't need native code compilation. Works on Windows and in sandboxed environments like [Cloud9](http://c9.io).\n * Used in popular projects like [Express.js (body_parser)](https://github.com/expressjs/body-parser), \n [Grunt](http://gruntjs.com/), [Nodemailer](http://www.nodemailer.com/), [Yeoman](http://yeoman.io/) and others.\n * Faster than [node-iconv](https://github.com/bnoordhuis/node-iconv) (see below for performance comparison).\n * Intuitive encode/decode API\n * Streaming support for Node v0.10+\n * [Deprecated] Can extend Node.js primitives (buffers, streams) to support all iconv-lite encodings.\n * In-browser usage via [Browserify](https://github.com/substack/node-browserify) (~180k gzip compressed with Buffer shim included).\n * Typescript [type definition file](https://github.com/ashtuchkin/iconv-lite/blob/master/lib/index.d.ts) included.\n * React Native is supported (need to explicitly `npm install` two more modules: `buffer` and `stream`).\n * License: MIT.\n\n[![NPM Stats](https://nodei.co/npm/iconv-lite.png?downloads=true&downloadRank=true)](https://npmjs.org/packages/iconv-lite/)\n\n## Usage\n### Basic API\n```javascript\nvar iconv = require('iconv-lite');\n\n// Convert from an encoded buffer to js string.\nstr = iconv.decode(new Buffer([0x68, 0x65, 0x6c, 0x6c, 0x6f]), 'win1251');\n\n// Convert from js string to an encoded buffer.\nbuf = iconv.encode(\"Sample input string\", 'win1251');\n\n// Check if encoding is supported\niconv.encodingExists(\"us-ascii\")\n```\n\n### Streaming API (Node v0.10+)\n```javascript\n\n// Decode stream (from binary stream to js strings)\nhttp.createServer(function(req, res) {\n var converterStream = iconv.decodeStream('win1251');\n req.pipe(converterStream);\n\n converterStream.on('data', function(str) {\n console.log(str); // Do something with decoded strings, chunk-by-chunk.\n });\n});\n\n// Convert encoding streaming example\nfs.createReadStream('file-in-win1251.txt')\n .pipe(iconv.decodeStream('win1251'))\n .pipe(iconv.encodeStream('ucs2'))\n .pipe(fs.createWriteStream('file-in-ucs2.txt'));\n\n// Sugar: all encode/decode streams have .collect(cb) method to accumulate data.\nhttp.createServer(function(req, res) {\n req.pipe(iconv.decodeStream('win1251')).collect(function(err, body) {\n assert(typeof body == 'string');\n console.log(body); // full request body string\n });\n});\n```\n\n### [Deprecated] Extend Node.js own encodings\n> NOTE: This doesn't work on latest Node versions. See [details](https://github.com/ashtuchkin/iconv-lite/wiki/Node-v4-compatibility).\n\n```javascript\n// After this call all Node basic primitives will understand iconv-lite encodings.\niconv.extendNodeEncodings();\n\n// Examples:\nbuf = new Buffer(str, 'win1251');\nbuf.write(str, 'gbk');\nstr = buf.toString('latin1');\nassert(Buffer.isEncoding('iso-8859-15'));\nBuffer.byteLength(str, 'us-ascii');\n\nhttp.createServer(function(req, res) {\n req.setEncoding('big5');\n req.collect(function(err, body) {\n console.log(body);\n });\n});\n\nfs.createReadStream(\"file.txt\", \"shift_jis\");\n\n// External modules are also supported (if they use Node primitives, which they probably do).\nrequest = require('request');\nrequest({\n url: \"http://github.com/\", \n encoding: \"cp932\"\n});\n\n// To remove extensions\niconv.undoExtendNodeEncodings();\n```\n\n## Supported encodings\n\n * All node.js native encodings: utf8, ucs2 / utf16-le, ascii, binary, base64, hex.\n * Additional unicode encodings: utf16, utf16-be, utf-7, utf-7-imap.\n * All widespread singlebyte encodings: Windows 125x family, ISO-8859 family, \n IBM/DOS codepages, Macintosh family, KOI8 family, all others supported by iconv library. \n Aliases like 'latin1', 'us-ascii' also supported.\n * All widespread multibyte encodings: CP932, CP936, CP949, CP950, GB2312, GBK, GB18030, Big5, Shift_JIS, EUC-JP.\n\nSee [all supported encodings on wiki](https://github.com/ashtuchkin/iconv-lite/wiki/Supported-Encodings).\n\nMost singlebyte encodings are generated automatically from [node-iconv](https://github.com/bnoordhuis/node-iconv). Thank you Ben Noordhuis and libiconv authors!\n\nMultibyte encodings are generated from [Unicode.org mappings](http://www.unicode.org/Public/MAPPINGS/) and [WHATWG Encoding Standard mappings](http://encoding.spec.whatwg.org/). Thank you, respective authors!\n\n\n## Encoding/decoding speed\n\nComparison with node-iconv module (1000x256kb, on MacBook Pro, Core i5/2.6 GHz, Node v0.12.0). \nNote: your results may vary, so please always check on your hardware.\n\n operation iconv@2.1.4 iconv-lite@0.4.7\n ----------------------------------------------------------\n encode('win1251') ~96 Mb/s ~320 Mb/s\n decode('win1251') ~95 Mb/s ~246 Mb/s\n\n## BOM handling\n\n * Decoding: BOM is stripped by default, unless overridden by passing `stripBOM: false` in options\n (f.ex. `iconv.decode(buf, enc, {stripBOM: false})`).\n A callback might also be given as a `stripBOM` parameter - it'll be called if BOM character was actually found.\n * If you want to detect UTF-8 BOM when decoding other encodings, use [node-autodetect-decoder-stream](https://github.com/danielgindi/node-autodetect-decoder-stream) module.\n * Encoding: No BOM added, unless overridden by `addBOM: true` option.\n\n## UTF-16 Encodings\n\nThis library supports UTF-16LE, UTF-16BE and UTF-16 encodings. First two are straightforward, but UTF-16 is trying to be\nsmart about endianness in the following ways:\n * Decoding: uses BOM and 'spaces heuristic' to determine input endianness. Default is UTF-16LE, but can be \n overridden with `defaultEncoding: 'utf-16be'` option. Strips BOM unless `stripBOM: false`.\n * Encoding: uses UTF-16LE and writes BOM by default. Use `addBOM: false` to override.\n\n## Other notes\n\nWhen decoding, be sure to supply a Buffer to decode() method, otherwise [bad things usually happen](https://github.com/ashtuchkin/iconv-lite/wiki/Use-Buffers-when-decoding). \nUntranslatable characters are set to � or ?. No transliteration is currently supported. \nNode versions 0.10.31 and 0.11.13 are buggy, don't use them (see #65, #77). \n\n## Testing\n\n```bash\n$ git clone git@github.com:ashtuchkin/iconv-lite.git\n$ cd iconv-lite\n$ npm install\n$ npm test\n \n$ # To view performance:\n$ node test/performance.js\n\n$ # To view test coverage:\n$ npm run coverage\n$ open coverage/lcov-report/index.html\n```\n\n## Adoption\n[![NPM](https://nodei.co/npm-dl/iconv-lite.png)](https://nodei.co/npm/iconv-lite/)\n[![Codeship Status for ashtuchkin/iconv-lite](https://www.codeship.com/projects/81670840-fa72-0131-4520-4a01a6c01acc/status)](https://www.codeship.com/projects/29053)\n", - "readmeFilename": "README.md", "repository": { "type": "git", "url": "git://github.com/ashtuchkin/iconv-lite.git" @@ -156,5 +122,5 @@ "test": "mocha --reporter spec --grep ." }, "typings": "./lib/index.d.ts", - "version": "0.4.17" + "version": "0.4.19" } diff --git a/node_modules/is-stream/package.json b/node_modules/is-stream/package.json index 06a076c0..bc776b43 100644 --- a/node_modules/is-stream/package.json +++ b/node_modules/is-stream/package.json @@ -1,50 +1,32 @@ { "_args": [ [ - { - "raw": "is-stream@^1.0.1", - "scope": null, - "escapedName": "is-stream", - "name": "is-stream", - "rawSpec": "^1.0.1", - "spec": ">=1.0.1 <2.0.0", - "type": "range" - }, - "/Users/Michal/Desktop/dev/react-slider/node_modules/node-fetch" + "is-stream@1.1.0", + "/Users/Michal/Desktop/dev/react-slider" ] ], - "_from": "is-stream@>=1.0.1 <2.0.0", + "_from": "is-stream@1.1.0", "_id": "is-stream@1.1.0", - "_inCache": true, + "_inBundle": false, + "_integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=", "_location": "/is-stream", - "_nodeVersion": "4.4.2", - "_npmOperationalInternal": { - "host": "packages-12-west.internal.npmjs.com", - "tmp": "tmp/is-stream-1.1.0.tgz_1460446915184_0.806101513793692" - }, - "_npmUser": { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - }, - "_npmVersion": "2.15.0", "_phantomChildren": {}, "_requested": { - "raw": "is-stream@^1.0.1", - "scope": null, - "escapedName": "is-stream", + "type": "version", + "registry": true, + "raw": "is-stream@1.1.0", "name": "is-stream", - "rawSpec": "^1.0.1", - "spec": ">=1.0.1 <2.0.0", - "type": "range" + "escapedName": "is-stream", + "rawSpec": "1.1.0", + "saveSpec": null, + "fetchSpec": "1.1.0" }, "_requiredBy": [ "/node-fetch" ], "_resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", - "_shasum": "12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44", - "_shrinkwrap": null, - "_spec": "is-stream@^1.0.1", - "_where": "/Users/Michal/Desktop/dev/react-slider/node_modules/node-fetch", + "_spec": "1.1.0", + "_where": "/Users/Michal/Desktop/dev/react-slider", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", @@ -53,25 +35,18 @@ "bugs": { "url": "https://github.com/sindresorhus/is-stream/issues" }, - "dependencies": {}, "description": "Check if something is a Node.js stream", "devDependencies": { "ava": "*", "tempfile": "^1.1.0", "xo": "*" }, - "directories": {}, - "dist": { - "shasum": "12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44", - "tarball": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz" - }, "engines": { "node": ">=0.10.0" }, "files": [ "index.js" ], - "gitHead": "e21d73f1028c189d16150cea52641059b0936310", "homepage": "https://github.com/sindresorhus/is-stream#readme", "keywords": [ "stream", @@ -86,16 +61,7 @@ "is" ], "license": "MIT", - "maintainers": [ - { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - } - ], "name": "is-stream", - "optionalDependencies": {}, - "readme": "# is-stream [![Build Status](https://travis-ci.org/sindresorhus/is-stream.svg?branch=master)](https://travis-ci.org/sindresorhus/is-stream)\n\n> Check if something is a [Node.js stream](https://nodejs.org/api/stream.html)\n\n\n## Install\n\n```\n$ npm install --save is-stream\n```\n\n\n## Usage\n\n```js\nconst fs = require('fs');\nconst isStream = require('is-stream');\n\nisStream(fs.createReadStream('unicorn.png'));\n//=> true\n\nisStream({});\n//=> false\n```\n\n\n## API\n\n### isStream(stream)\n\n#### isStream.writable(stream)\n\n#### isStream.readable(stream)\n\n#### isStream.duplex(stream)\n\n#### isStream.transform(stream)\n\n\n## License\n\nMIT © [Sindre Sorhus](https://sindresorhus.com)\n", - "readmeFilename": "readme.md", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/is-stream.git" diff --git a/node_modules/isomorphic-fetch/package.json b/node_modules/isomorphic-fetch/package.json index 19d2b10e..a96e7b17 100644 --- a/node_modules/isomorphic-fetch/package.json +++ b/node_modules/isomorphic-fetch/package.json @@ -1,46 +1,32 @@ { "_args": [ [ - { - "raw": "isomorphic-fetch@^2.1.1", - "scope": null, - "escapedName": "isomorphic-fetch", - "name": "isomorphic-fetch", - "rawSpec": "^2.1.1", - "spec": ">=2.1.1 <3.0.0", - "type": "range" - }, - "/Users/Michal/Desktop/dev/react-slider/node_modules/fbjs" + "isomorphic-fetch@2.2.1", + "/Users/Michal/Desktop/dev/react-slider" ] ], - "_from": "isomorphic-fetch@>=2.1.1 <3.0.0", + "_from": "isomorphic-fetch@2.2.1", "_id": "isomorphic-fetch@2.2.1", - "_inCache": true, + "_inBundle": false, + "_integrity": "sha1-YRrhrPFPXoH3KVB0coGf6XM1WKk=", "_location": "/isomorphic-fetch", - "_nodeVersion": "4.2.3", - "_npmUser": { - "name": "financial-times", - "email": "strategic.products@ft.com" - }, - "_npmVersion": "2.14.7", "_phantomChildren": {}, "_requested": { - "raw": "isomorphic-fetch@^2.1.1", - "scope": null, - "escapedName": "isomorphic-fetch", + "type": "version", + "registry": true, + "raw": "isomorphic-fetch@2.2.1", "name": "isomorphic-fetch", - "rawSpec": "^2.1.1", - "spec": ">=2.1.1 <3.0.0", - "type": "range" + "escapedName": "isomorphic-fetch", + "rawSpec": "2.2.1", + "saveSpec": null, + "fetchSpec": "2.2.1" }, "_requiredBy": [ "/fbjs" ], "_resolved": "https://registry.npmjs.org/isomorphic-fetch/-/isomorphic-fetch-2.2.1.tgz", - "_shasum": "611ae1acf14f5e81f729507472819fe9733558a9", - "_shrinkwrap": null, - "_spec": "isomorphic-fetch@^2.1.1", - "_where": "/Users/Michal/Desktop/dev/react-slider/node_modules/fbjs", + "_spec": "2.2.1", + "_where": "/Users/Michal/Desktop/dev/react-slider", "author": { "name": "Matt Andrews", "email": "matt@mattandre.ws" @@ -63,29 +49,10 @@ "nock": "^0.56.0", "npm-prepublish": "^1.0.2" }, - "directories": {}, - "dist": { - "shasum": "611ae1acf14f5e81f729507472819fe9733558a9", - "tarball": "https://registry.npmjs.org/isomorphic-fetch/-/isomorphic-fetch-2.2.1.tgz" - }, - "gitHead": "43437dc5b381e391b73522d71cea23fc72675154", "homepage": "https://github.com/matthew-andrews/isomorphic-fetch/issues", "license": "MIT", "main": "fetch-npm-node.js", - "maintainers": [ - { - "name": "financial-times", - "email": "strategic.products@ft.com" - }, - { - "name": "mattandrews", - "email": "matt@mattandre.ws" - } - ], "name": "isomorphic-fetch", - "optionalDependencies": {}, - "readme": "isomorphic-fetch [![Build Status](https://travis-ci.org/matthew-andrews/isomorphic-fetch.svg?branch=master)](https://travis-ci.org/matthew-andrews/isomorphic-fetch)\n================\n\nFetch for node and Browserify. Built on top of [GitHub's WHATWG Fetch polyfill](https://github.com/github/fetch).\n\n## Warnings\n\n- This adds `fetch` as a global so that its API is consistent between client and server.\n- You must bring your own ES6 Promise compatible polyfill, I suggest [es6-promise](https://github.com/jakearchibald/es6-promise).\n\n## Installation\n\n### NPM\n\n```sh\nnpm install --save isomorphic-fetch es6-promise\n```\n\n### Bower\n\n```sh\nbower install --save isomorphic-fetch es6-promise\n```\n\n## Usage\n\n```js\nrequire('es6-promise').polyfill();\nrequire('isomorphic-fetch');\n\nfetch('//offline-news-api.herokuapp.com/stories')\n\t.then(function(response) {\n\t\tif (response.status >= 400) {\n\t\t\tthrow new Error(\"Bad response from server\");\n\t\t}\n\t\treturn response.json();\n\t})\n\t.then(function(stories) {\n\t\tconsole.log(stories);\n\t});\n```\n\n## License\n\nAll open source code released by FT Labs is licenced under the MIT licence. Based on [the fine work by](https://github.com/github/fetch/pull/31) **[jxck](https://github.com/Jxck)**.\n", - "readmeFilename": "README.md", "repository": { "type": "git", "url": "git+https://github.com/matthew-andrews/isomorphic-fetch.git" diff --git a/node_modules/js-tokens/CHANGELOG.md b/node_modules/js-tokens/CHANGELOG.md index c3398e3f..208304b3 100644 --- a/node_modules/js-tokens/CHANGELOG.md +++ b/node_modules/js-tokens/CHANGELOG.md @@ -1,3 +1,8 @@ +### Version 3.0.2 (2017-06-28) ### + +- No code changes. Just updates to the readme. + + ### Version 3.0.1 (2017-01-30) ### - Fixed: ES2015 unicode escapes with more than 6 hex digits are now matched diff --git a/node_modules/js-tokens/README.md b/node_modules/js-tokens/README.md index 0c805c22..5c93a888 100644 --- a/node_modules/js-tokens/README.md +++ b/node_modules/js-tokens/README.md @@ -78,9 +78,9 @@ The intention is to always support the latest stable ECMAScript version. If adding support for a newer version requires changes, a new version with a major verion bump will be released. -Currently, [ECMAScript 2016] is supported. +Currently, [ECMAScript 2017] is supported. -[ECMAScript 2016]: http://www.ecma-international.org/ecma-262/7.0/index.html +[ECMAScript 2017]: https://www.ecma-international.org/ecma-262/8.0/index.html Invalid code handling diff --git a/node_modules/js-tokens/package.json b/node_modules/js-tokens/package.json index be63d936..32bd9328 100644 --- a/node_modules/js-tokens/package.json +++ b/node_modules/js-tokens/package.json @@ -1,73 +1,48 @@ { "_args": [ [ - { - "raw": "js-tokens@^3.0.0", - "scope": null, - "escapedName": "js-tokens", - "name": "js-tokens", - "rawSpec": "^3.0.0", - "spec": ">=3.0.0 <4.0.0", - "type": "range" - }, - "/Users/Michal/Desktop/dev/react-slider/node_modules/loose-envify" + "js-tokens@3.0.2", + "/Users/Michal/Desktop/dev/react-slider" ] ], - "_from": "js-tokens@>=3.0.0 <4.0.0", - "_id": "js-tokens@3.0.1", - "_inCache": true, + "_from": "js-tokens@3.0.2", + "_id": "js-tokens@3.0.2", + "_inBundle": false, + "_integrity": "sha1-mGbfOVECEw449/mWvOtlRDIJwls=", "_location": "/js-tokens", - "_nodeVersion": "7.2.0", - "_npmOperationalInternal": { - "host": "packages-18-east.internal.npmjs.com", - "tmp": "tmp/js-tokens-3.0.1.tgz_1485800902865_0.11822547880001366" - }, - "_npmUser": { - "name": "lydell", - "email": "simon.lydell@gmail.com" - }, - "_npmVersion": "3.10.9", "_phantomChildren": {}, "_requested": { - "raw": "js-tokens@^3.0.0", - "scope": null, - "escapedName": "js-tokens", + "type": "version", + "registry": true, + "raw": "js-tokens@3.0.2", "name": "js-tokens", - "rawSpec": "^3.0.0", - "spec": ">=3.0.0 <4.0.0", - "type": "range" + "escapedName": "js-tokens", + "rawSpec": "3.0.2", + "saveSpec": null, + "fetchSpec": "3.0.2" }, "_requiredBy": [ "/loose-envify" ], - "_resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.1.tgz", - "_shasum": "08e9f132484a2c45a30907e9dc4d5567b7f114d7", - "_shrinkwrap": null, - "_spec": "js-tokens@^3.0.0", - "_where": "/Users/Michal/Desktop/dev/react-slider/node_modules/loose-envify", + "_resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz", + "_spec": "3.0.2", + "_where": "/Users/Michal/Desktop/dev/react-slider", "author": { "name": "Simon Lydell" }, "bugs": { "url": "https://github.com/lydell/js-tokens/issues" }, - "dependencies": {}, "description": "A regex that tokenizes JavaScript.", "devDependencies": { - "coffee-script": "~1.12.2", - "esprima": "^3.1.3", + "coffee-script": "~1.12.6", + "esprima": "^4.0.0", "everything.js": "^1.0.3", - "mocha": "^3.2.0" - }, - "directories": {}, - "dist": { - "shasum": "08e9f132484a2c45a30907e9dc4d5567b7f114d7", - "tarball": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.1.tgz" + "mocha": "^3.4.2" }, "files": [ "index.js" ], - "gitHead": "54549dd979142c78cf629b51f9f06e8133c529f9", "homepage": "https://github.com/lydell/js-tokens#readme", "keywords": [ "JavaScript", @@ -77,16 +52,7 @@ "regex" ], "license": "MIT", - "maintainers": [ - { - "name": "lydell", - "email": "simon.lydell@gmail.com" - } - ], "name": "js-tokens", - "optionalDependencies": {}, - "readme": "Overview [![Build Status](https://travis-ci.org/lydell/js-tokens.svg?branch=master)](https://travis-ci.org/lydell/js-tokens)\n========\n\nA regex that tokenizes JavaScript.\n\n```js\nvar jsTokens = require(\"js-tokens\").default\n\nvar jsString = \"var foo=opts.foo;\\n...\"\n\njsString.match(jsTokens)\n// [\"var\", \" \", \"foo\", \"=\", \"opts\", \".\", \"foo\", \";\", \"\\n\", ...]\n```\n\n\nInstallation\n============\n\n`npm install js-tokens`\n\n```js\nimport jsTokens from \"js-tokens\"\n// or:\nvar jsTokens = require(\"js-tokens\").default\n```\n\n\nUsage\n=====\n\n### `jsTokens` ###\n\nA regex with the `g` flag that matches JavaScript tokens.\n\nThe regex _always_ matches, even invalid JavaScript and the empty string.\n\nThe next match is always directly after the previous.\n\n### `var token = matchToToken(match)` ###\n\n```js\nimport {matchToToken} from \"js-tokens\"\n// or:\nvar matchToToken = require(\"js-tokens\").matchToToken\n```\n\nTakes a `match` returned by `jsTokens.exec(string)`, and returns a `{type:\nString, value: String}` object. The following types are available:\n\n- string\n- comment\n- regex\n- number\n- name\n- punctuator\n- whitespace\n- invalid\n\nMulti-line comments and strings also have a `closed` property indicating if the\ntoken was closed or not (see below).\n\nComments and strings both come in several flavors. To distinguish them, check if\nthe token starts with `//`, `/*`, `'`, `\"` or `` ` ``.\n\nNames are ECMAScript IdentifierNames, that is, including both identifiers and\nkeywords. You may use [is-keyword-js] to tell them apart.\n\nWhitespace includes both line terminators and other whitespace.\n\n[is-keyword-js]: https://github.com/crissdev/is-keyword-js\n\n\nECMAScript support\n==================\n\nThe intention is to always support the latest stable ECMAScript version.\n\nIf adding support for a newer version requires changes, a new version with a\nmajor verion bump will be released.\n\nCurrently, [ECMAScript 2016] is supported.\n\n[ECMAScript 2016]: http://www.ecma-international.org/ecma-262/7.0/index.html\n\n\nInvalid code handling\n=====================\n\nUnterminated strings are still matched as strings. JavaScript strings cannot\ncontain (unescaped) newlines, so unterminated strings simply end at the end of\nthe line. Unterminated template strings can contain unescaped newlines, though,\nso they go on to the end of input.\n\nUnterminated multi-line comments are also still matched as comments. They\nsimply go on to the end of the input.\n\nUnterminated regex literals are likely matched as division and whatever is\ninside the regex.\n\nInvalid ASCII characters have their own capturing group.\n\nInvalid non-ASCII characters are treated as names, to simplify the matching of\nnames (except unicode spaces which are treated as whitespace).\n\nRegex literals may contain invalid regex syntax. They are still matched as\nregex literals. They may also contain repeated regex flags, to keep the regex\nsimple.\n\nStrings may contain invalid escape sequences.\n\n\nLimitations\n===========\n\nTokenizing JavaScript using regexes—in fact, _one single regex_—won’t be\nperfect. But that’s not the point either.\n\nYou may compare jsTokens with [esprima] by using `esprima-compare.js`.\nSee `npm run esprima-compare`!\n\n[esprima]: http://esprima.org/\n\n### Template string interpolation ###\n\nTemplate strings are matched as single tokens, from the starting `` ` `` to the\nending `` ` ``, including interpolations (whose tokens are not matched\nindividually).\n\nMatching template string interpolations requires recursive balancing of `{` and\n`}`—something that JavaScript regexes cannot do. Only one level of nesting is\nsupported.\n\n### Division and regex literals collision ###\n\nConsider this example:\n\n```js\nvar g = 9.82\nvar number = bar / 2/g\n\nvar regex = / 2/g\n```\n\nA human can easily understand that in the `number` line we’re dealing with\ndivision, and in the `regex` line we’re dealing with a regex literal. How come?\nBecause humans can look at the whole code to put the `/` characters in context.\nA JavaScript regex cannot. It only sees forwards.\n\nWhen the `jsTokens` regex scans throught the above, it will see the following\nat the end of both the `number` and `regex` rows:\n\n```js\n/ 2/g\n```\n\nIt is then impossible to know if that is a regex literal, or part of an\nexpression dealing with division.\n\nHere is a similar case:\n\n```js\nfoo /= 2/g\nfoo(/= 2/g)\n```\n\nThe first line divides the `foo` variable with `2/g`. The second line calls the\n`foo` function with the regex literal `/= 2/g`. Again, since `jsTokens` only\nsees forwards, it cannot tell the two cases apart.\n\nThere are some cases where we _can_ tell division and regex literals apart,\nthough.\n\nFirst off, we have the simple cases where there’s only one slash in the line:\n\n```js\nvar foo = 2/g\nfoo /= 2\n```\n\nRegex literals cannot contain newlines, so the above cases are correctly\nidentified as division. Things are only problematic when there are more than\none non-comment slash in a single line.\n\nSecondly, not every character is a valid regex flag.\n\n```js\nvar number = bar / 2/e\n```\n\nThe above example is also correctly identified as division, because `e` is not a\nvalid regex flag. I initially wanted to future-proof by allowing `[a-zA-Z]*`\n(any letter) as flags, but it is not worth it since it increases the amount of\nambigous cases. So only the standard `g`, `m`, `i`, `y` and `u` flags are\nallowed. This means that the above example will be identified as division as\nlong as you don’t rename the `e` variable to some permutation of `gmiyu` 1 to 5\ncharacters long.\n\nLastly, we can look _forward_ for information.\n\n- If the token following what looks like a regex literal is not valid after a\n regex literal, but is valid in a division expression, then the regex literal\n is treated as division instead. For example, a flagless regex cannot be\n followed by a string, number or name, but all of those three can be the\n denominator of a division.\n- Generally, if what looks like a regex literal is followed by an operator, the\n regex literal is treated as division instead. This is because regexes are\n seldomly used with operators (such as `+`, `*`, `&&` and `==`), but division\n could likely be part of such an expression.\n\nPlease consult the regex source and the test cases for precise information on\nwhen regex or division is matched (should you need to know). In short, you\ncould sum it up as:\n\nIf the end of a statement looks like a regex literal (even if it isn’t), it\nwill be treated as one. Otherwise it should work as expected (if you write sane\ncode).\n\n\nLicense\n=======\n\n[MIT](LICENSE).\n", - "readmeFilename": "README.md", "repository": { "type": "git", "url": "git+https://github.com/lydell/js-tokens.git" @@ -97,5 +63,5 @@ "esprima-compare": "node esprima-compare ./index.js everything.js/es5.js", "test": "mocha --ui tdd" }, - "version": "3.0.1" + "version": "3.0.2" } diff --git a/node_modules/loose-envify/package.json b/node_modules/loose-envify/package.json index 4a3aa1ac..3bdaf4de 100644 --- a/node_modules/loose-envify/package.json +++ b/node_modules/loose-envify/package.json @@ -1,41 +1,25 @@ { "_args": [ [ - { - "raw": "loose-envify@^1.3.1", - "scope": null, - "escapedName": "loose-envify", - "name": "loose-envify", - "rawSpec": "^1.3.1", - "spec": ">=1.3.1 <2.0.0", - "type": "range" - }, - "/Users/Michal/Desktop/dev/react-slider/node_modules/create-react-class" + "loose-envify@1.3.1", + "/Users/Michal/Desktop/dev/react-slider" ] ], - "_from": "loose-envify@>=1.3.1 <2.0.0", + "_from": "loose-envify@1.3.1", "_id": "loose-envify@1.3.1", - "_inCache": true, + "_inBundle": false, + "_integrity": "sha1-0aitM/qc4OcT1l/dCsi3SNR4yEg=", "_location": "/loose-envify", - "_nodeVersion": "7.3.0", - "_npmOperationalInternal": { - "host": "packages-18-east.internal.npmjs.com", - "tmp": "tmp/loose-envify-1.3.1.tgz_1484486581665_0.5577248032204807" - }, - "_npmUser": { - "name": "zertosh", - "email": "zertosh@gmail.com" - }, - "_npmVersion": "3.10.10", "_phantomChildren": {}, "_requested": { - "raw": "loose-envify@^1.3.1", - "scope": null, - "escapedName": "loose-envify", + "type": "version", + "registry": true, + "raw": "loose-envify@1.3.1", "name": "loose-envify", - "rawSpec": "^1.3.1", - "spec": ">=1.3.1 <2.0.0", - "type": "range" + "escapedName": "loose-envify", + "rawSpec": "1.3.1", + "saveSpec": null, + "fetchSpec": "1.3.1" }, "_requiredBy": [ "/create-react-class", @@ -45,10 +29,8 @@ "/react-dom" ], "_resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.3.1.tgz", - "_shasum": "d1a8ad33fa9ce0e713d65fdd0ac8b748d478c848", - "_shrinkwrap": null, - "_spec": "loose-envify@^1.3.1", - "_where": "/Users/Michal/Desktop/dev/react-slider/node_modules/create-react-class", + "_spec": "1.3.1", + "_where": "/Users/Michal/Desktop/dev/react-slider", "author": { "name": "Andres Suarez", "email": "zertosh@gmail.com" @@ -68,12 +50,6 @@ "envify": "^3.4.0", "tap": "^8.0.0" }, - "directories": {}, - "dist": { - "shasum": "d1a8ad33fa9ce0e713d65fdd0ac8b748d478c848", - "tarball": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.3.1.tgz" - }, - "gitHead": "7b2d41e61a7ddba5335154b4aba327f6e850f7fd", "homepage": "https://github.com/zertosh/loose-envify", "keywords": [ "environment", @@ -86,16 +62,7 @@ ], "license": "MIT", "main": "index.js", - "maintainers": [ - { - "name": "zertosh", - "email": "zertosh@gmail.com" - } - ], "name": "loose-envify", - "optionalDependencies": {}, - "readme": "# loose-envify\n\n[![Build Status](https://travis-ci.org/zertosh/loose-envify.svg?branch=master)](https://travis-ci.org/zertosh/loose-envify)\n\nFast (and loose) selective `process.env` replacer using [js-tokens](https://github.com/lydell/js-tokens) instead of an AST. Works just like [envify](https://github.com/hughsk/envify) but much faster.\n\n## Gotchas\n\n* Doesn't handle broken syntax.\n* Doesn't look inside embedded expressions in template strings.\n - **this won't work:**\n ```js\n console.log(`the current env is ${process.env.NODE_ENV}`);\n ```\n* Doesn't replace oddly-spaced or oddly-commented expressions.\n - **this won't work:**\n ```js\n console.log(process./*won't*/env./*work*/NODE_ENV);\n ```\n\n## Usage/Options\n\nloose-envify has the exact same interface as [envify](https://github.com/hughsk/envify), including the CLI.\n\n## Benchmark\n\n```\nenvify:\n\n $ for i in {1..5}; do node bench/bench.js 'envify'; done\n 708ms\n 727ms\n 791ms\n 719ms\n 720ms\n\nloose-envify:\n\n $ for i in {1..5}; do node bench/bench.js '../'; done\n 51ms\n 52ms\n 52ms\n 52ms\n 52ms\n```\n", - "readmeFilename": "README.md", "repository": { "type": "git", "url": "git://github.com/zertosh/loose-envify.git" diff --git a/node_modules/node-fetch/CHANGELOG.md b/node_modules/node-fetch/CHANGELOG.md index 01520374..e298b1b1 100644 --- a/node_modules/node-fetch/CHANGELOG.md +++ b/node_modules/node-fetch/CHANGELOG.md @@ -7,6 +7,14 @@ Changelog (Note: `1.x` will only have backported bugfix releases beyond `1.7.0`) +## v1.7.3 + +- Enhance: `FetchError` now gives a correct trace stack (backport from v2.x relese). + +## v1.7.2 + +- Fix: when using node-fetch with test framework such as `jest`, `instanceof` check could fail in `Headers` class. This is causing some header values, such as `set-cookie`, to be dropped incorrectly. + ## v1.7.1 - Fix: close local test server properly under Node 8. diff --git a/node_modules/node-fetch/lib/fetch-error.js b/node_modules/node-fetch/lib/fetch-error.js index 7cabfb3c..a48eb828 100644 --- a/node_modules/node-fetch/lib/fetch-error.js +++ b/node_modules/node-fetch/lib/fetch-error.js @@ -17,9 +17,6 @@ module.exports = FetchError; */ function FetchError(message, type, systemError) { - // hide custom error implementation details from end-users - Error.captureStackTrace(this, this.constructor); - this.name = this.constructor.name; this.message = message; this.type = type; @@ -29,6 +26,8 @@ function FetchError(message, type, systemError) { this.code = this.errno = systemError.code; } + // hide custom error implementation details from end-users + Error.captureStackTrace(this, this.constructor); } require('util').inherits(FetchError, Error); diff --git a/node_modules/node-fetch/lib/headers.js b/node_modules/node-fetch/lib/headers.js index fd7a14ea..af20749b 100644 --- a/node_modules/node-fetch/lib/headers.js +++ b/node_modules/node-fetch/lib/headers.js @@ -35,7 +35,7 @@ function Headers(headers) { } else if (typeof headers[prop] === 'number' && !isNaN(headers[prop])) { this.set(prop, headers[prop].toString()); - } else if (headers[prop] instanceof Array) { + } else if (Array.isArray(headers[prop])) { headers[prop].forEach(function(item) { self.append(prop, item.toString()); }); diff --git a/node_modules/node-fetch/lib/index.js b/node_modules/node-fetch/lib/index.js index 107532b7..f1008547 100644 --- a/node_modules/node-fetch/lib/index.js +++ b/node_modules/node-fetch/lib/index.js @@ -2,16 +2,6 @@ Object.defineProperty(exports, '__esModule', { value: true }); -function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } - -var url = require('url'); -var http = require('http'); -var https = require('https'); -var zlib = require('zlib'); -var Stream = require('stream'); -var Stream__default = _interopDefault(Stream); -var encoding = require('encoding'); - // Based on https://github.com/tmpvar/jsdom/blob/aa85b2abf07766ff7bf5c1f6daafb3726f2f2db5/lib/jsdom/living/blob.js // (MIT licensed) @@ -45,13 +35,13 @@ class Blob { if (element instanceof Buffer) { buffer = element; } else if (ArrayBuffer.isView(element)) { - buffer = new Buffer(new Uint8Array(element.buffer, element.byteOffset, element.byteLength)); + buffer = Buffer.from(element.buffer, element.byteOffset, element.byteLength); } else if (element instanceof ArrayBuffer) { - buffer = new Buffer(new Uint8Array(element)); + buffer = Buffer.from(element); } else if (element instanceof Blob) { buffer = element[BUFFER]; } else { - buffer = new Buffer(typeof element === 'string' ? element : String(element)); + buffer = Buffer.from(typeof element === 'string' ? element : String(element)); } buffers.push(buffer); } @@ -153,8 +143,20 @@ FetchError.prototype.name = 'FetchError'; * Body interface provides common methods for Request and Response */ +const Stream = require('stream'); + +var _require$1 = require('stream'); + +const PassThrough$1 = _require$1.PassThrough; + + const DISTURBED = Symbol('disturbed'); +let convert; +try { + convert = require('encoding').convert; +} catch (e) {} + /** * Body class * @@ -177,11 +179,13 @@ function Body(body) { body = null; } else if (typeof body === 'string') { // body is string + } else if (isURLSearchParams(body)) { + // body is a URLSearchParams } else if (body instanceof Blob) { // body is blob } else if (Buffer.isBuffer(body)) { // body is buffer - } else if (body instanceof Stream__default) { + } else if (body instanceof Stream) { // body is stream } else { // none of the above @@ -234,8 +238,14 @@ Body.prototype = { * @return Promise */ json() { + var _this = this; + return consumeBody.call(this).then(function (buffer) { - return JSON.parse(buffer.toString()); + try { + return JSON.parse(buffer.toString()); + } catch (err) { + return Body.Promise.reject(new FetchError(`invalid json response body at ${_this.url} reason: ${err.message}`, 'invalid-json')); + } }); }, @@ -266,10 +276,10 @@ Body.prototype = { * @return Promise */ textConverted() { - var _this = this; + var _this2 = this; return consumeBody.call(this).then(function (buffer) { - return convertBody(buffer, _this.headers); + return convertBody(buffer, _this2.headers); }); } @@ -291,7 +301,7 @@ Body.mixIn = function (proto) { * @return Promise */ function consumeBody(body) { - var _this2 = this; + var _this3 = this; if (this[DISTURBED]) { return Body.Promise.reject(new Error(`body used already for: ${this.url}`)); @@ -301,12 +311,12 @@ function consumeBody(body) { // body is null if (this.body === null) { - return Body.Promise.resolve(new Buffer(0)); + return Body.Promise.resolve(Buffer.alloc(0)); } // body is string if (typeof this.body === 'string') { - return Body.Promise.resolve(new Buffer(this.body)); + return Body.Promise.resolve(Buffer.from(this.body)); } // body is blob @@ -320,8 +330,8 @@ function consumeBody(body) { } // istanbul ignore if: should never happen - if (!(this.body instanceof Stream__default)) { - return Body.Promise.resolve(new Buffer(0)); + if (!(this.body instanceof Stream)) { + return Body.Promise.resolve(Buffer.alloc(0)); } // body is stream @@ -330,30 +340,30 @@ function consumeBody(body) { let accumBytes = 0; let abort = false; - return new Body.Promise(function (resolve$$1, reject) { + return new Body.Promise(function (resolve, reject) { let resTimeout; // allow timeout on slow response body - if (_this2.timeout) { + if (_this3.timeout) { resTimeout = setTimeout(function () { abort = true; - reject(new FetchError(`Response timeout while trying to fetch ${_this2.url} (over ${_this2.timeout}ms)`, 'body-timeout')); - }, _this2.timeout); + reject(new FetchError(`Response timeout while trying to fetch ${_this3.url} (over ${_this3.timeout}ms)`, 'body-timeout')); + }, _this3.timeout); } // handle stream error, such as incorrect content-encoding - _this2.body.on('error', function (err) { - reject(new FetchError(`Invalid response body while trying to fetch ${_this2.url}: ${err.message}`, 'system', err)); + _this3.body.on('error', function (err) { + reject(new FetchError(`Invalid response body while trying to fetch ${_this3.url}: ${err.message}`, 'system', err)); }); - _this2.body.on('data', function (chunk) { + _this3.body.on('data', function (chunk) { if (abort || chunk === null) { return; } - if (_this2.size && accumBytes + chunk.length > _this2.size) { + if (_this3.size && accumBytes + chunk.length > _this3.size) { abort = true; - reject(new FetchError(`content size at ${_this2.url} over limit: ${_this2.size}`, 'max-size')); + reject(new FetchError(`content size at ${_this3.url} over limit: ${_this3.size}`, 'max-size')); return; } @@ -361,13 +371,13 @@ function consumeBody(body) { accum.push(chunk); }); - _this2.body.on('end', function () { + _this3.body.on('end', function () { if (abort) { return; } clearTimeout(resTimeout); - resolve$$1(Buffer.concat(accum)); + resolve(Buffer.concat(accum)); }); }); } @@ -381,6 +391,10 @@ function consumeBody(body) { * @return String */ function convertBody(buffer, headers) { + if (typeof convert !== 'function') { + throw new Error('The package `encoding` must be installed to use the textConverted() function'); + } + const ct = headers.get('content-type'); let charset = 'utf-8'; let res, str; @@ -424,7 +438,24 @@ function convertBody(buffer, headers) { } // turn raw buffers into a single utf-8 buffer - return encoding.convert(buffer, 'UTF-8', charset).toString(); + return convert(buffer, 'UTF-8', charset).toString(); +} + +/** + * Detect a URLSearchParams object + * ref: https://github.com/bitinn/node-fetch/issues/296#issuecomment-307598143 + * + * @param Object obj Object to detect by type or brand + * @return String + */ +function isURLSearchParams(obj) { + // Duck-typing as a necessary condition. + if (typeof obj !== 'object' || typeof obj.append !== 'function' || typeof obj.delete !== 'function' || typeof obj.get !== 'function' || typeof obj.getAll !== 'function' || typeof obj.has !== 'function' || typeof obj.set !== 'function') { + return false; + } + + // Brand-checking and more duck-typing as optional condition. + return obj.constructor.name === 'URLSearchParams' || Object.prototype.toString.call(obj) === '[object URLSearchParams]' || typeof obj.sort === 'function'; } /** @@ -444,10 +475,10 @@ function clone(instance) { // check that body is a stream and not form-data object // note: we can't clone the form-data object without having it as a dependency - if (body instanceof Stream__default && typeof body.getBoundary !== 'function') { + if (body instanceof Stream && typeof body.getBoundary !== 'function') { // tee instance body - p1 = new Stream.PassThrough(); - p2 = new Stream.PassThrough(); + p1 = new PassThrough$1(); + p2 = new PassThrough$1(); body.pipe(p1); body.pipe(p2); // set instance body to teed body and return the other teed body @@ -479,6 +510,9 @@ function extractContentType(instance) { } else if (typeof body === 'string') { // body is string return 'text/plain;charset=UTF-8'; + } else if (isURLSearchParams(body)) { + // body is a URLSearchParams + return 'application/x-www-form-urlencoded;charset=UTF-8'; } else if (body instanceof Blob) { // body is blob return body.type || null; @@ -506,6 +540,9 @@ function getTotalBytes(instance) { } else if (typeof body === 'string') { // body is string return Buffer.byteLength(body); + } else if (isURLSearchParams(body)) { + // body is URLSearchParams + return Buffer.byteLength(String(body)); } else if (body instanceof Blob) { // body is blob return body.size; @@ -538,6 +575,10 @@ function writeToStream(dest, instance) { // body is string dest.write(body); dest.end(); + } else if (isURLSearchParams(body)) { + // body is URLSearchParams + dest.write(Buffer.from(String(body))); + dest.end(); } else if (body instanceof Blob) { // body is blob dest.write(body[BUFFER]); @@ -944,6 +985,10 @@ Object.defineProperty(HeadersIteratorPrototype, Symbol.toStringTag, { * Response class provides content decoding */ +var _require$2 = require('http'); + +const STATUS_CODES = _require$2.STATUS_CODES; + /** * Response class * @@ -951,6 +996,7 @@ Object.defineProperty(HeadersIteratorPrototype, Symbol.toStringTag, { * @param Object opts Response options * @return Void */ + class Response { constructor() { let body = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; @@ -960,7 +1006,7 @@ class Response { this.url = opts.url; this.status = opts.status || 200; - this.statusText = opts.statusText || http.STATUS_CODES[this.status]; + this.statusText = opts.statusText || STATUS_CODES[this.status]; this.headers = new Headers(opts.headers); @@ -1011,6 +1057,12 @@ Object.defineProperty(Response.prototype, Symbol.toStringTag, { * Request class contains server only options */ +var _require$3 = require('url'); + +const format_url = _require$3.format; +const parse_url = _require$3.parse; + + const PARSED_URL = Symbol('url'); /** @@ -1032,14 +1084,14 @@ class Request { // in order to support Node.js' Url objects; though WHATWG's URL objects // will fall into this branch also (since their `toString()` will return // `href` property anyway) - parsedURL = url.parse(input.href); + parsedURL = parse_url(input.href); } else { // coerce input to a string before attempting to parse - parsedURL = url.parse(`${input}`); + parsedURL = parse_url(`${input}`); } input = {}; } else { - parsedURL = url.parse(input.url); + parsedURL = parse_url(input.url); } let method = init.method || input.method || 'GET'; @@ -1083,7 +1135,7 @@ class Request { } get url() { - return url.format(this[PARSED_URL]); + return format_url(this[PARSED_URL]); } /** @@ -1167,6 +1219,19 @@ function getNodeRequestOptions(request) { * a request API compatible with window.fetch */ +const http = require('http'); +const https = require('https'); + +var _require = require('stream'); + +const PassThrough = _require.PassThrough; + +var _require2 = require('url'); + +const resolve_url = _require2.resolve; + +const zlib = require('zlib'); + /** * Fetch function * @@ -1174,7 +1239,7 @@ function getNodeRequestOptions(request) { * @param Object opts Fetch options * @return Promise */ -function fetch(url$$1, opts) { +function fetch(url, opts) { // allow custom promise if (!fetch.Promise) { @@ -1184,9 +1249,9 @@ function fetch(url$$1, opts) { Body.Promise = fetch.Promise; // wrap http.request into fetch - return new fetch.Promise(function (resolve$$1, reject) { + return new fetch.Promise(function (resolve, reject) { // build request object - const request = new Request(url$$1, opts); + const request = new Request(url, opts); const options = getNodeRequestOptions(request); const send = (options.protocol === 'https:' ? https : http).request; @@ -1243,7 +1308,7 @@ function fetch(url$$1, opts) { request.counter++; - resolve$$1(fetch(url.resolve(request.url, res.headers.location), request)); + resolve(fetch(resolve_url(request.url, res.headers.location), request)); return; } @@ -1259,11 +1324,11 @@ function fetch(url$$1, opts) { } } if (request.redirect === 'manual' && headers.has('location')) { - headers.set('location', url.resolve(request.url, headers.get('location'))); + headers.set('location', resolve_url(request.url, headers.get('location'))); } // prepare response - let body = res.pipe(new Stream.PassThrough()); + let body = res.pipe(new PassThrough()); const response_options = { url: request.url, status: res.statusCode, @@ -1285,7 +1350,7 @@ function fetch(url$$1, opts) { // 4. no content response (204) // 5. content not modified response (304) if (!request.compress || request.method === 'HEAD' || codings === null || res.statusCode === 204 || res.statusCode === 304) { - resolve$$1(new Response(body, response_options)); + resolve(new Response(body, response_options)); return; } @@ -1302,7 +1367,7 @@ function fetch(url$$1, opts) { // for gzip if (codings == 'gzip' || codings == 'x-gzip') { body = body.pipe(zlib.createGunzip(zlibOptions)); - resolve$$1(new Response(body, response_options)); + resolve(new Response(body, response_options)); return; } @@ -1310,7 +1375,7 @@ function fetch(url$$1, opts) { if (codings == 'deflate' || codings == 'x-deflate') { // handle the infamous raw deflate response from old servers // a hack for old IIS and Apache servers - const raw = res.pipe(new Stream.PassThrough()); + const raw = res.pipe(new PassThrough()); raw.once('data', function (chunk) { // see http://stackoverflow.com/questions/37519828 if ((chunk[0] & 0x0F) === 0x08) { @@ -1318,13 +1383,13 @@ function fetch(url$$1, opts) { } else { body = body.pipe(zlib.createInflateRaw()); } - resolve$$1(new Response(body, response_options)); + resolve(new Response(body, response_options)); }); return; } // otherwise, use response as-is - resolve$$1(new Response(body, response_options)); + resolve(new Response(body, response_options)); }); writeToStream(req, request); diff --git a/node_modules/node-fetch/package.json b/node_modules/node-fetch/package.json index 9ab2b0ea..65c552ed 100644 --- a/node_modules/node-fetch/package.json +++ b/node_modules/node-fetch/package.json @@ -1,50 +1,32 @@ { "_args": [ [ - { - "raw": "node-fetch@^1.0.1", - "scope": null, - "escapedName": "node-fetch", - "name": "node-fetch", - "rawSpec": "^1.0.1", - "spec": ">=1.0.1 <2.0.0", - "type": "range" - }, - "/Users/Michal/Desktop/dev/react-slider/node_modules/isomorphic-fetch" + "node-fetch@1.7.3", + "/Users/Michal/Desktop/dev/react-slider" ] ], - "_from": "node-fetch@>=1.0.1 <2.0.0", - "_id": "node-fetch@1.7.1", - "_inCache": true, + "_from": "node-fetch@1.7.3", + "_id": "node-fetch@1.7.3", + "_inBundle": false, + "_integrity": "sha512-NhZ4CsKx7cYm2vSrBAr2PvFOe6sWDf0UYLRqA6svUYg7+/TSfVAu49jYC4BvQ4Sms9SZgdqGBgroqfDhJdTyKQ==", "_location": "/node-fetch", - "_nodeVersion": "8.0.0", - "_npmOperationalInternal": { - "host": "s3://npm-registry-packages", - "tmp": "tmp/node-fetch-1.7.1.tgz_1496493897766_0.25435457238927484" - }, - "_npmUser": { - "name": "bitinn", - "email": "bitinn@gmail.com" - }, - "_npmVersion": "5.0.1", "_phantomChildren": {}, "_requested": { - "raw": "node-fetch@^1.0.1", - "scope": null, - "escapedName": "node-fetch", + "type": "version", + "registry": true, + "raw": "node-fetch@1.7.3", "name": "node-fetch", - "rawSpec": "^1.0.1", - "spec": ">=1.0.1 <2.0.0", - "type": "range" + "escapedName": "node-fetch", + "rawSpec": "1.7.3", + "saveSpec": null, + "fetchSpec": "1.7.3" }, "_requiredBy": [ "/isomorphic-fetch" ], - "_resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-1.7.1.tgz", - "_shasum": "899cb3d0a3c92f952c47f1b876f4c8aeabd400d5", - "_shrinkwrap": null, - "_spec": "node-fetch@^1.0.1", - "_where": "/Users/Michal/Desktop/dev/react-slider/node_modules/isomorphic-fetch", + "_resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-1.7.3.tgz", + "_spec": "1.7.3", + "_where": "/Users/Michal/Desktop/dev/react-slider", "author": { "name": "David Frank" }, @@ -68,13 +50,6 @@ "promise": "^7.1.1", "resumer": "0.0.0" }, - "directories": {}, - "dist": { - "integrity": "sha512-j8XsFGCLw79vWXkZtMSmmLaOk9z5SQ9bV/tkbZVCqvgwzrjAGq66igobLofHtF63NvMTp2WjytpsNTGKa+XRIQ==", - "shasum": "899cb3d0a3c92f952c47f1b876f4c8aeabd400d5", - "tarball": "https://registry.npmjs.org/node-fetch/-/node-fetch-1.7.1.tgz" - }, - "gitHead": "4bb15ce988bf614a2b1b72da1d6545b09ca6b4c6", "homepage": "https://github.com/bitinn/node-fetch", "keywords": [ "fetch", @@ -83,20 +58,7 @@ ], "license": "MIT", "main": "index.js", - "maintainers": [ - { - "name": "bitinn", - "email": "bitinn@gmail.com" - }, - { - "name": "timothygu", - "email": "timothygu99@gmail.com" - } - ], "name": "node-fetch", - "optionalDependencies": {}, - "readme": "\nnode-fetch\n==========\n\n[![npm version][npm-image]][npm-url]\n[![build status][travis-image]][travis-url]\n[![coverage status][codecov-image]][codecov-url]\n\nA light-weight module that brings `window.fetch` to Node.js\n\n\n# Motivation\n\nInstead of implementing `XMLHttpRequest` in Node.js to run browser-specific [Fetch polyfill](https://github.com/github/fetch), why not go from native `http` to `Fetch` API directly? Hence `node-fetch`, minimal code for a `window.fetch` compatible API on Node.js runtime.\n\nSee Matt Andrews' [isomorphic-fetch](https://github.com/matthew-andrews/isomorphic-fetch) for isomorphic usage (exports `node-fetch` for server-side, `whatwg-fetch` for client-side).\n\n\n# Features\n\n- Stay consistent with `window.fetch` API.\n- Make conscious trade-off when following [whatwg fetch spec](https://fetch.spec.whatwg.org/) and [stream spec](https://streams.spec.whatwg.org/) implementation details, document known difference.\n- Use native promise, but allow substituting it with [insert your favorite promise library].\n- Use native stream for body, on both request and response.\n- Decode content encoding (gzip/deflate) properly, and convert string output (such as `res.text()` and `res.json()`) to UTF-8 automatically.\n- Useful extensions such as timeout, redirect limit, response size limit, [explicit errors](https://github.com/bitinn/node-fetch/blob/master/ERROR-HANDLING.md) for troubleshooting.\n\n\n# Difference from client-side fetch\n\n- See [Known Differences](https://github.com/bitinn/node-fetch/blob/master/LIMITS.md) for details.\n- If you happen to use a missing feature that `window.fetch` offers, feel free to open an issue.\n- Pull requests are welcomed too!\n\n\n# Install\n\n`npm install node-fetch --save`\n\n\n# Usage\n\n```javascript\nvar fetch = require('node-fetch');\n\n// if you are on node v0.10, set a Promise library first, eg.\n// fetch.Promise = require('bluebird');\n\n// plain text or html\n\nfetch('https://github.com/')\n\t.then(function(res) {\n\t\treturn res.text();\n\t}).then(function(body) {\n\t\tconsole.log(body);\n\t});\n\n// json\n\nfetch('https://api.github.com/users/github')\n\t.then(function(res) {\n\t\treturn res.json();\n\t}).then(function(json) {\n\t\tconsole.log(json);\n\t});\n\n// catching network error\n// 3xx-5xx responses are NOT network errors, and should be handled in then()\n// you only need one catch() at the end of your promise chain\n\nfetch('http://domain.invalid/')\n\t.catch(function(err) {\n\t\tconsole.log(err);\n\t});\n\n// stream\n// the node.js way is to use stream when possible\n\nfetch('https://assets-cdn.github.com/images/modules/logos_page/Octocat.png')\n\t.then(function(res) {\n\t\tvar dest = fs.createWriteStream('./octocat.png');\n\t\tres.body.pipe(dest);\n\t});\n\n// buffer\n// if you prefer to cache binary data in full, use buffer()\n// note that buffer() is a node-fetch only API\n\nvar fileType = require('file-type');\nfetch('https://assets-cdn.github.com/images/modules/logos_page/Octocat.png')\n\t.then(function(res) {\n\t\treturn res.buffer();\n\t}).then(function(buffer) {\n\t\tfileType(buffer);\n\t});\n\n// meta\n\nfetch('https://github.com/')\n\t.then(function(res) {\n\t\tconsole.log(res.ok);\n\t\tconsole.log(res.status);\n\t\tconsole.log(res.statusText);\n\t\tconsole.log(res.headers.raw());\n\t\tconsole.log(res.headers.get('content-type'));\n\t});\n\n// post\n\nfetch('http://httpbin.org/post', { method: 'POST', body: 'a=1' })\n\t.then(function(res) {\n\t\treturn res.json();\n\t}).then(function(json) {\n\t\tconsole.log(json);\n\t});\n\n// post with stream from resumer\n\nvar resumer = require('resumer');\nvar stream = resumer().queue('a=1').end();\nfetch('http://httpbin.org/post', { method: 'POST', body: stream })\n\t.then(function(res) {\n\t\treturn res.json();\n\t}).then(function(json) {\n\t\tconsole.log(json);\n\t});\n\n// post with form-data (detect multipart)\n\nvar FormData = require('form-data');\nvar form = new FormData();\nform.append('a', 1);\nfetch('http://httpbin.org/post', { method: 'POST', body: form })\n\t.then(function(res) {\n\t\treturn res.json();\n\t}).then(function(json) {\n\t\tconsole.log(json);\n\t});\n\n// post with form-data (custom headers)\n// note that getHeaders() is non-standard API\n\nvar FormData = require('form-data');\nvar form = new FormData();\nform.append('a', 1);\nfetch('http://httpbin.org/post', { method: 'POST', body: form, headers: form.getHeaders() })\n\t.then(function(res) {\n\t\treturn res.json();\n\t}).then(function(json) {\n\t\tconsole.log(json);\n\t});\n\n// node 0.12+, yield with co\n\nvar co = require('co');\nco(function *() {\n\tvar res = yield fetch('https://api.github.com/users/github');\n\tvar json = yield res.json();\n\tconsole.log(res);\n});\n```\n\nSee [test cases](https://github.com/bitinn/node-fetch/blob/master/test/test.js) for more examples.\n\n\n# API\n\n## fetch(url, options)\n\nReturns a `Promise`\n\n### Url\n\nShould be an absolute url, eg `http://example.com/`\n\n### Options\n\ndefault values are shown, note that only `method`, `headers`, `redirect` and `body` are allowed in `window.fetch`, others are node.js extensions.\n\n```\n{\n\tmethod: 'GET'\n\t, headers: {} // request header. format {a:'1'} or {b:['1','2','3']}\n\t, redirect: 'follow' // set to `manual` to extract redirect headers, `error` to reject redirect\n\t, follow: 20 // maximum redirect count. 0 to not follow redirect\n\t, timeout: 0 // req/res timeout in ms, it resets on redirect. 0 to disable (OS limit applies)\n\t, compress: true // support gzip/deflate content encoding. false to disable\n\t, size: 0 // maximum response body size in bytes. 0 to disable\n\t, body: empty // request body. can be a string, buffer, readable stream\n\t, agent: null // http.Agent instance, allows custom proxy, certificate etc.\n}\n```\n\n\n# License\n\nMIT\n\n\n# Acknowledgement\n\nThanks to [github/fetch](https://github.com/github/fetch) for providing a solid implementation reference.\n\n\n[npm-image]: https://img.shields.io/npm/v/node-fetch.svg?style=flat-square\n[npm-url]: https://www.npmjs.com/package/node-fetch\n[travis-image]: https://img.shields.io/travis/bitinn/node-fetch.svg?style=flat-square\n[travis-url]: https://travis-ci.org/bitinn/node-fetch\n[codecov-image]: https://img.shields.io/codecov/c/github/bitinn/node-fetch.svg?style=flat-square\n[codecov-url]: https://codecov.io/gh/bitinn/node-fetch\n", - "readmeFilename": "README.md", "repository": { "type": "git", "url": "git+https://github.com/bitinn/node-fetch.git" @@ -106,5 +68,5 @@ "report": "istanbul cover _mocha -- -R spec test/test.js", "test": "mocha test/test.js" }, - "version": "1.7.1" + "version": "1.7.3" } diff --git a/node_modules/node-fetch/test/test.js b/node_modules/node-fetch/test/test.js index 284b263a..d1bd3fd4 100644 --- a/node_modules/node-fetch/test/test.js +++ b/node_modules/node-fetch/test/test.js @@ -1458,7 +1458,7 @@ describe('node-fetch', function() { expect(body).to.have.property('buffer'); }); - it('should create custom FetchError', function() { + it('should create custom FetchError', function funcName() { var systemError = new Error('system'); systemError.code = 'ESOMEERROR'; @@ -1470,6 +1470,8 @@ describe('node-fetch', function() { expect(err.type).to.equal('test-error'); expect(err.code).to.equal('ESOMEERROR'); expect(err.errno).to.equal('ESOMEERROR'); + expect(err.stack).to.include('funcName'); + expect(err.stack.split('\n')[0]).to.equal(err.name + ': ' + err.message); }); it('should support https request', function() { diff --git a/node_modules/object-assign/package.json b/node_modules/object-assign/package.json index e20e0139..0549487d 100644 --- a/node_modules/object-assign/package.json +++ b/node_modules/object-assign/package.json @@ -1,53 +1,36 @@ { "_args": [ [ - { - "raw": "object-assign@^4.1.1", - "scope": null, - "escapedName": "object-assign", - "name": "object-assign", - "rawSpec": "^4.1.1", - "spec": ">=4.1.1 <5.0.0", - "type": "range" - }, - "/Users/Michal/Desktop/dev/react-slider/node_modules/create-react-class" + "object-assign@4.1.1", + "/Users/Michal/Desktop/dev/react-slider" ] ], - "_from": "object-assign@>=4.1.1 <5.0.0", + "_from": "object-assign@4.1.1", "_id": "object-assign@4.1.1", - "_inCache": true, + "_inBundle": false, + "_integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", "_location": "/object-assign", - "_nodeVersion": "4.6.2", - "_npmOperationalInternal": { - "host": "packages-12-west.internal.npmjs.com", - "tmp": "tmp/object-assign-4.1.1.tgz_1484580915042_0.07107710791751742" - }, - "_npmUser": { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - }, - "_npmVersion": "2.15.11", "_phantomChildren": {}, "_requested": { - "raw": "object-assign@^4.1.1", - "scope": null, - "escapedName": "object-assign", + "type": "version", + "registry": true, + "raw": "object-assign@4.1.1", "name": "object-assign", - "rawSpec": "^4.1.1", - "spec": ">=4.1.1 <5.0.0", - "type": "range" + "escapedName": "object-assign", + "rawSpec": "4.1.1", + "saveSpec": null, + "fetchSpec": "4.1.1" }, "_requiredBy": [ "/create-react-class", "/fbjs", + "/prop-types", "/react", "/react-dom" ], "_resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "_shasum": "2109adc7965887cfc05cbbd442cac8bfbb360863", - "_shrinkwrap": null, - "_spec": "object-assign@^4.1.1", - "_where": "/Users/Michal/Desktop/dev/react-slider/node_modules/create-react-class", + "_spec": "4.1.1", + "_where": "/Users/Michal/Desktop/dev/react-slider", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", @@ -56,7 +39,6 @@ "bugs": { "url": "https://github.com/sindresorhus/object-assign/issues" }, - "dependencies": {}, "description": "ES2015 `Object.assign()` ponyfill", "devDependencies": { "ava": "^0.16.0", @@ -64,18 +46,12 @@ "matcha": "^0.7.0", "xo": "^0.16.0" }, - "directories": {}, - "dist": { - "shasum": "2109adc7965887cfc05cbbd442cac8bfbb360863", - "tarball": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz" - }, "engines": { "node": ">=0.10.0" }, "files": [ "index.js" ], - "gitHead": "a89774b252c91612203876984bbd6addbe3b5a0e", "homepage": "https://github.com/sindresorhus/object-assign#readme", "keywords": [ "object", @@ -92,24 +68,7 @@ "browser" ], "license": "MIT", - "maintainers": [ - { - "name": "gaearon", - "email": "dan.abramov@gmail.com" - }, - { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - }, - { - "name": "spicyj", - "email": "ben@benalpert.com" - } - ], "name": "object-assign", - "optionalDependencies": {}, - "readme": "# object-assign [![Build Status](https://travis-ci.org/sindresorhus/object-assign.svg?branch=master)](https://travis-ci.org/sindresorhus/object-assign)\n\n> ES2015 [`Object.assign()`](http://www.2ality.com/2014/01/object-assign.html) [ponyfill](https://ponyfill.com)\n\n\n## Use the built-in\n\nNode.js 4 and up, as well as every evergreen browser (Chrome, Edge, Firefox, Opera, Safari),\nsupport `Object.assign()` :tada:. If you target only those environments, then by all\nmeans, use `Object.assign()` instead of this package.\n\n\n## Install\n\n```\n$ npm install --save object-assign\n```\n\n\n## Usage\n\n```js\nconst objectAssign = require('object-assign');\n\nobjectAssign({foo: 0}, {bar: 1});\n//=> {foo: 0, bar: 1}\n\n// multiple sources\nobjectAssign({foo: 0}, {bar: 1}, {baz: 2});\n//=> {foo: 0, bar: 1, baz: 2}\n\n// overwrites equal keys\nobjectAssign({foo: 0}, {foo: 1}, {foo: 2});\n//=> {foo: 2}\n\n// ignores null and undefined sources\nobjectAssign({foo: 0}, null, {bar: 1}, undefined);\n//=> {foo: 0, bar: 1}\n```\n\n\n## API\n\n### objectAssign(target, [source, ...])\n\nAssigns enumerable own properties of `source` objects to the `target` object and returns the `target` object. Additional `source` objects will overwrite previous ones.\n\n\n## Resources\n\n- [ES2015 spec - Object.assign](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.assign)\n\n\n## Related\n\n- [deep-assign](https://github.com/sindresorhus/deep-assign) - Recursive `Object.assign()`\n\n\n## License\n\nMIT © [Sindre Sorhus](https://sindresorhus.com)\n", - "readmeFilename": "readme.md", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/object-assign.git" diff --git a/node_modules/promise/Readme.md b/node_modules/promise/Readme.md index 61ec0523..9e281a74 100644 --- a/node_modules/promise/Readme.md +++ b/node_modules/promise/Readme.md @@ -14,8 +14,8 @@ For detailed tutorials on its use, see www.promisejs.org [travis-image]: https://img.shields.io/travis/then/promise.svg?style=flat [travis-url]: https://travis-ci.org/then/promise -[dep-image]: https://img.shields.io/gemnasium/then/promise.svg?style=flat -[dep-url]: https://gemnasium.com/then/promise +[dep-image]: https://img.shields.io/david/then/promise.svg?style=flat +[dep-url]: https://david-dm.org/then/promise [npm-image]: https://img.shields.io/npm/v/promise.svg?style=flat [npm-url]: https://npmjs.org/package/promise [downloads-image]: https://img.shields.io/npm/dm/promise.svg?style=flat diff --git a/node_modules/promise/domains/core.js b/node_modules/promise/domains/core.js index bcf1168c..aea44148 100644 --- a/node_modules/promise/domains/core.js +++ b/node_modules/promise/domains/core.js @@ -56,17 +56,17 @@ function Promise(fn) { throw new TypeError('Promises must be constructed via new'); } if (typeof fn !== 'function') { - throw new TypeError('not a function'); + throw new TypeError('Promise constructor\'s argument is not a function'); } - this._45 = 0; - this._81 = 0; - this._65 = null; - this._54 = null; + this._40 = 0; + this._65 = 0; + this._55 = null; + this._72 = null; if (fn === noop) return; doResolve(fn, this); } -Promise._10 = null; -Promise._97 = null; +Promise._37 = null; +Promise._87 = null; Promise._61 = noop; Promise.prototype.then = function(onFulfilled, onRejected) { @@ -84,26 +84,26 @@ function safeThen(self, onFulfilled, onRejected) { res.then(resolve, reject); handle(self, new Handler(onFulfilled, onRejected, res)); }); -}; +} function handle(self, deferred) { - while (self._81 === 3) { - self = self._65; + while (self._65 === 3) { + self = self._55; } - if (Promise._10) { - Promise._10(self); + if (Promise._37) { + Promise._37(self); } - if (self._81 === 0) { - if (self._45 === 0) { - self._45 = 1; - self._54 = deferred; + if (self._65 === 0) { + if (self._40 === 0) { + self._40 = 1; + self._72 = deferred; return; } - if (self._45 === 1) { - self._45 = 2; - self._54 = [self._54, deferred]; + if (self._40 === 1) { + self._40 = 2; + self._72 = [self._72, deferred]; return; } - self._54.push(deferred); + self._72.push(deferred); return; } handleResolved(self, deferred); @@ -111,16 +111,16 @@ function handle(self, deferred) { function handleResolved(self, deferred) { asap(function() { - var cb = self._81 === 1 ? deferred.onFulfilled : deferred.onRejected; + var cb = self._65 === 1 ? deferred.onFulfilled : deferred.onRejected; if (cb === null) { - if (self._81 === 1) { - resolve(deferred.promise, self._65); + if (self._65 === 1) { + resolve(deferred.promise, self._55); } else { - reject(deferred.promise, self._65); + reject(deferred.promise, self._55); } return; } - var ret = tryCallOne(cb, self._65); + var ret = tryCallOne(cb, self._55); if (ret === IS_ERROR) { reject(deferred.promise, LAST_ERROR); } else { @@ -148,8 +148,8 @@ function resolve(self, newValue) { then === self.then && newValue instanceof Promise ) { - self._81 = 3; - self._65 = newValue; + self._65 = 3; + self._55 = newValue; finale(self); return; } else if (typeof then === 'function') { @@ -157,29 +157,29 @@ function resolve(self, newValue) { return; } } - self._81 = 1; - self._65 = newValue; + self._65 = 1; + self._55 = newValue; finale(self); } function reject(self, newValue) { - self._81 = 2; - self._65 = newValue; - if (Promise._97) { - Promise._97(self, newValue); + self._65 = 2; + self._55 = newValue; + if (Promise._87) { + Promise._87(self, newValue); } finale(self); } function finale(self) { - if (self._45 === 1) { - handle(self, self._54); - self._54 = null; + if (self._40 === 1) { + handle(self, self._72); + self._72 = null; } - if (self._45 === 2) { - for (var i = 0; i < self._54.length; i++) { - handle(self, self._54[i]); + if (self._40 === 2) { + for (var i = 0; i < self._72.length; i++) { + handle(self, self._72[i]); } - self._54 = null; + self._72 = null; } } @@ -205,7 +205,7 @@ function doResolve(fn, promise) { if (done) return; done = true; reject(promise, reason); - }) + }); if (!done && res === IS_ERROR) { done = true; reject(promise, LAST_ERROR); diff --git a/node_modules/promise/domains/es6-extensions.js b/node_modules/promise/domains/es6-extensions.js index 1ab6eae5..8ab26669 100644 --- a/node_modules/promise/domains/es6-extensions.js +++ b/node_modules/promise/domains/es6-extensions.js @@ -17,8 +17,8 @@ var EMPTYSTRING = valuePromise(''); function valuePromise(value) { var p = new Promise(Promise._61); - p._81 = 1; - p._65 = value; + p._65 = 1; + p._55 = value; return p; } Promise.resolve = function (value) { @@ -55,11 +55,11 @@ Promise.all = function (arr) { function res(i, val) { if (val && (typeof val === 'object' || typeof val === 'function')) { if (val instanceof Promise && val.then === Promise.prototype.then) { - while (val._81 === 3) { - val = val._65; + while (val._65 === 3) { + val = val._55; } - if (val._81 === 1) return res(i, val._65); - if (val._81 === 2) reject(val._65); + if (val._65 === 1) return res(i, val._55); + if (val._65 === 2) reject(val._55); val.then(function (val) { res(i, val); }, reject); diff --git a/node_modules/promise/domains/node-extensions.js b/node_modules/promise/domains/node-extensions.js index 890ae45d..157cddc2 100644 --- a/node_modules/promise/domains/node-extensions.js +++ b/node_modules/promise/domains/node-extensions.js @@ -18,7 +18,7 @@ Promise.denodeify = function (fn, argumentCount) { } else { return denodeifyWithoutCount(fn); } -} +}; var callbackFn = ( 'function (err, res) {' + @@ -113,7 +113,7 @@ Promise.nodeify = function (fn) { } } } -} +}; Promise.prototype.nodeify = function (callback, ctx) { if (typeof callback != 'function') return this; @@ -127,4 +127,4 @@ Promise.prototype.nodeify = function (callback, ctx) { callback.call(ctx, err); }); }); -} +}; diff --git a/node_modules/promise/domains/rejection-tracking.js b/node_modules/promise/domains/rejection-tracking.js index 088a0dea..10ccce30 100644 --- a/node_modules/promise/domains/rejection-tracking.js +++ b/node_modules/promise/domains/rejection-tracking.js @@ -12,8 +12,8 @@ var enabled = false; exports.disable = disable; function disable() { enabled = false; - Promise._10 = null; - Promise._97 = null; + Promise._37 = null; + Promise._87 = null; } exports.enable = enable; @@ -24,27 +24,27 @@ function enable(options) { var id = 0; var displayId = 0; var rejections = {}; - Promise._10 = function (promise) { + Promise._37 = function (promise) { if ( - promise._81 === 2 && // IS REJECTED - rejections[promise._72] + promise._65 === 2 && // IS REJECTED + rejections[promise._51] ) { - if (rejections[promise._72].logged) { - onHandled(promise._72); + if (rejections[promise._51].logged) { + onHandled(promise._51); } else { - clearTimeout(rejections[promise._72].timeout); + clearTimeout(rejections[promise._51].timeout); } - delete rejections[promise._72]; + delete rejections[promise._51]; } }; - Promise._97 = function (promise, err) { - if (promise._45 === 0) { // not yet handled - promise._72 = id++; - rejections[promise._72] = { + Promise._87 = function (promise, err) { + if (promise._40 === 0) { // not yet handled + promise._51 = id++; + rejections[promise._51] = { displayId: null, error: err, timeout: setTimeout( - onUnhandled.bind(null, promise._72), + onUnhandled.bind(null, promise._51), // For reference errors and type errors, this almost always // means the programmer made a mistake, so log them after just // 100ms diff --git a/node_modules/promise/domains/synchronous.js b/node_modules/promise/domains/synchronous.js index 2f97451a..49399644 100644 --- a/node_modules/promise/domains/synchronous.js +++ b/node_modules/promise/domains/synchronous.js @@ -17,38 +17,38 @@ Promise.enableSynchronous = function () { }; Promise.prototype.getValue = function () { - if (this._81 === 3) { - return this._65.getValue(); + if (this._65 === 3) { + return this._55.getValue(); } if (!this.isFulfilled()) { throw new Error('Cannot get a value of an unfulfilled promise.'); } - return this._65; + return this._55; }; Promise.prototype.getReason = function () { - if (this._81 === 3) { - return this._65.getReason(); + if (this._65 === 3) { + return this._55.getReason(); } if (!this.isRejected()) { throw new Error('Cannot get a rejection reason of a non-rejected promise.'); } - return this._65; + return this._55; }; Promise.prototype.getState = function () { - if (this._81 === 3) { - return this._65.getState(); + if (this._65 === 3) { + return this._55.getState(); } - if (this._81 === -1 || this._81 === -2) { + if (this._65 === -1 || this._65 === -2) { return 0; } - return this._81; + return this._65; }; }; diff --git a/node_modules/promise/index.d.ts b/node_modules/promise/index.d.ts new file mode 100644 index 00000000..a199cbc9 --- /dev/null +++ b/node_modules/promise/index.d.ts @@ -0,0 +1,256 @@ +interface Thenable { + /** + * Attaches callbacks for the resolution and/or rejection of the ThenPromise. + * @param onfulfilled The callback to execute when the ThenPromise is resolved. + * @param onrejected The callback to execute when the ThenPromise is rejected. + * @returns A ThenPromise for the completion of which ever callback is executed. + */ + then(onfulfilled?: ((value: T) => TResult1 | Thenable) | undefined | null, onrejected?: ((reason: any) => TResult2 | Thenable) | undefined | null): Thenable; +} + +/** + * Represents the completion of an asynchronous operation + */ +interface ThenPromise { + /** + * Attaches callbacks for the resolution and/or rejection of the ThenPromise. + * @param onfulfilled The callback to execute when the ThenPromise is resolved. + * @param onrejected The callback to execute when the ThenPromise is rejected. + * @returns A ThenPromise for the completion of which ever callback is executed. + */ + then(onfulfilled?: ((value: T) => TResult1 | Thenable) | undefined | null, onrejected?: ((reason: any) => TResult2 | Thenable) | undefined | null): ThenPromise; + + /** + * Attaches a callback for only the rejection of the ThenPromise. + * @param onrejected The callback to execute when the ThenPromise is rejected. + * @returns A ThenPromise for the completion of the callback. + */ + catch(onrejected?: ((reason: any) => TResult | Thenable) | undefined | null): ThenPromise; + + // Extensions specific to then/promise + + /** + * Attaches callbacks for the resolution and/or rejection of the ThenPromise, without returning a new promise. + * @param onfulfilled The callback to execute when the ThenPromise is resolved. + * @param onrejected The callback to execute when the ThenPromise is rejected. + */ + done(onfulfilled?: ((value: T) => any) | undefined | null, onrejected?: ((reason: any) => any) | undefined | null): void; + + + /** + * Calls a node.js style callback. If none is provided, the promise is returned. + */ + nodeify(callback: void | null): ThenPromise; + nodeify(callback: (err: Error, value: T) => void): void; +} + +interface ThenPromiseConstructor { + /** + * A reference to the prototype. + */ + readonly prototype: ThenPromise; + + /** + * Creates a new ThenPromise. + * @param executor A callback used to initialize the promise. This callback is passed two arguments: + * a resolve callback used resolve the promise with a value or the result of another promise, + * and a reject callback used to reject the promise with a provided reason or error. + */ + new (executor: (resolve: (value?: T | Thenable) => void, reject: (reason?: any) => void) => any): ThenPromise; + + /** + * Creates a ThenPromise that is resolved with an array of results when all of the provided Promises + * resolve, or rejected when any ThenPromise is rejected. + * @param values An array of Promises. + * @returns A new ThenPromise. + */ + all(values: [T1 | Thenable, T2 | Thenable, T3 | Thenable, T4 | Thenable , T5 | Thenable, T6 | Thenable, T7 | Thenable, T8 | Thenable, T9 | Thenable, T10 | Thenable]): ThenPromise<[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]>; + + /** + * Creates a ThenPromise that is resolved with an array of results when all of the provided Promises + * resolve, or rejected when any ThenPromise is rejected. + * @param values An array of Promises. + * @returns A new ThenPromise. + */ + all(values: [T1 | Thenable, T2 | Thenable, T3 | Thenable, T4 | Thenable , T5 | Thenable, T6 | Thenable, T7 | Thenable, T8 | Thenable, T9 | Thenable]): ThenPromise<[T1, T2, T3, T4, T5, T6, T7, T8, T9]>; + + /** + * Creates a ThenPromise that is resolved with an array of results when all of the provided Promises + * resolve, or rejected when any ThenPromise is rejected. + * @param values An array of Promises. + * @returns A new ThenPromise. + */ + all(values: [T1 | Thenable, T2 | Thenable, T3 | Thenable, T4 | Thenable , T5 | Thenable, T6 | Thenable, T7 | Thenable, T8 | Thenable]): ThenPromise<[T1, T2, T3, T4, T5, T6, T7, T8]>; + + /** + * Creates a ThenPromise that is resolved with an array of results when all of the provided Promises + * resolve, or rejected when any ThenPromise is rejected. + * @param values An array of Promises. + * @returns A new ThenPromise. + */ + all(values: [T1 | Thenable, T2 | Thenable, T3 | Thenable, T4 | Thenable , T5 | Thenable, T6 | Thenable, T7 | Thenable]): ThenPromise<[T1, T2, T3, T4, T5, T6, T7]>; + + /** + * Creates a ThenPromise that is resolved with an array of results when all of the provided Promises + * resolve, or rejected when any ThenPromise is rejected. + * @param values An array of Promises. + * @returns A new ThenPromise. + */ + all(values: [T1 | Thenable, T2 | Thenable, T3 | Thenable, T4 | Thenable , T5 | Thenable, T6 | Thenable]): ThenPromise<[T1, T2, T3, T4, T5, T6]>; + + /** + * Creates a ThenPromise that is resolved with an array of results when all of the provided Promises + * resolve, or rejected when any ThenPromise is rejected. + * @param values An array of Promises. + * @returns A new ThenPromise. + */ + all(values: [T1 | Thenable, T2 | Thenable, T3 | Thenable, T4 | Thenable , T5 | Thenable]): ThenPromise<[T1, T2, T3, T4, T5]>; + + /** + * Creates a ThenPromise that is resolved with an array of results when all of the provided Promises + * resolve, or rejected when any ThenPromise is rejected. + * @param values An array of Promises. + * @returns A new ThenPromise. + */ + all(values: [T1 | Thenable, T2 | Thenable, T3 | Thenable, T4 | Thenable ]): ThenPromise<[T1, T2, T3, T4]>; + + /** + * Creates a ThenPromise that is resolved with an array of results when all of the provided Promises + * resolve, or rejected when any ThenPromise is rejected. + * @param values An array of Promises. + * @returns A new ThenPromise. + */ + all(values: [T1 | Thenable, T2 | Thenable, T3 | Thenable]): ThenPromise<[T1, T2, T3]>; + + /** + * Creates a ThenPromise that is resolved with an array of results when all of the provided Promises + * resolve, or rejected when any ThenPromise is rejected. + * @param values An array of Promises. + * @returns A new ThenPromise. + */ + all(values: [T1 | Thenable, T2 | Thenable]): ThenPromise<[T1, T2]>; + + /** + * Creates a ThenPromise that is resolved with an array of results when all of the provided Promises + * resolve, or rejected when any ThenPromise is rejected. + * @param values An array of Promises. + * @returns A new ThenPromise. + */ + all(values: (T | Thenable)[]): ThenPromise; + + /** + * Creates a ThenPromise that is resolved or rejected when any of the provided Promises are resolved + * or rejected. + * @param values An array of Promises. + * @returns A new ThenPromise. + */ + race(values: [T1 | Thenable, T2 | Thenable, T3 | Thenable, T4 | Thenable, T5 | Thenable, T6 | Thenable, T7 | Thenable, T8 | Thenable, T9 | Thenable, T10 | Thenable]): ThenPromise; + + /** + * Creates a ThenPromise that is resolved or rejected when any of the provided Promises are resolved + * or rejected. + * @param values An array of Promises. + * @returns A new ThenPromise. + */ + race(values: [T1 | Thenable, T2 | Thenable, T3 | Thenable, T4 | Thenable, T5 | Thenable, T6 | Thenable, T7 | Thenable, T8 | Thenable, T9 | Thenable]): ThenPromise; + + /** + * Creates a ThenPromise that is resolved or rejected when any of the provided Promises are resolved + * or rejected. + * @param values An array of Promises. + * @returns A new ThenPromise. + */ + race(values: [T1 | Thenable, T2 | Thenable, T3 | Thenable, T4 | Thenable, T5 | Thenable, T6 | Thenable, T7 | Thenable, T8 | Thenable]): ThenPromise; + + /** + * Creates a ThenPromise that is resolved or rejected when any of the provided Promises are resolved + * or rejected. + * @param values An array of Promises. + * @returns A new ThenPromise. + */ + race(values: [T1 | Thenable, T2 | Thenable, T3 | Thenable, T4 | Thenable, T5 | Thenable, T6 | Thenable, T7 | Thenable]): ThenPromise; + + /** + * Creates a ThenPromise that is resolved or rejected when any of the provided Promises are resolved + * or rejected. + * @param values An array of Promises. + * @returns A new ThenPromise. + */ + race(values: [T1 | Thenable, T2 | Thenable, T3 | Thenable, T4 | Thenable, T5 | Thenable, T6 | Thenable]): ThenPromise; + + /** + * Creates a ThenPromise that is resolved or rejected when any of the provided Promises are resolved + * or rejected. + * @param values An array of Promises. + * @returns A new ThenPromise. + */ + race(values: [T1 | Thenable, T2 | Thenable, T3 | Thenable, T4 | Thenable, T5 | Thenable]): ThenPromise; + + /** + * Creates a ThenPromise that is resolved or rejected when any of the provided Promises are resolved + * or rejected. + * @param values An array of Promises. + * @returns A new ThenPromise. + */ + race(values: [T1 | Thenable, T2 | Thenable, T3 | Thenable, T4 | Thenable]): ThenPromise; + + /** + * Creates a ThenPromise that is resolved or rejected when any of the provided Promises are resolved + * or rejected. + * @param values An array of Promises. + * @returns A new ThenPromise. + */ + race(values: [T1 | Thenable, T2 | Thenable, T3 | Thenable]): ThenPromise; + + /** + * Creates a ThenPromise that is resolved or rejected when any of the provided Promises are resolved + * or rejected. + * @param values An array of Promises. + * @returns A new ThenPromise. + */ + race(values: [T1 | Thenable, T2 | Thenable]): ThenPromise; + + /** + * Creates a ThenPromise that is resolved or rejected when any of the provided Promises are resolved + * or rejected. + * @param values An array of Promises. + * @returns A new ThenPromise. + */ + race(values: (T | Thenable)[]): ThenPromise; + + /** + * Creates a new rejected promise for the provided reason. + * @param reason The reason the promise was rejected. + * @returns A new rejected ThenPromise. + */ + reject(reason: any): ThenPromise; + + /** + * Creates a new rejected promise for the provided reason. + * @param reason The reason the promise was rejected. + * @returns A new rejected ThenPromise. + */ + reject(reason: any): ThenPromise; + + /** + * Creates a new resolved promise for the provided value. + * @param value A promise. + * @returns A promise whose internal state matches the provided promise. + */ + resolve(value: T | Thenable): ThenPromise; + + /** + * Creates a new resolved promise . + * @returns A resolved promise. + */ + resolve(): ThenPromise; + + // Extensions specific to then/promise + + denodeify: (fn: Function) => (...args: any[]) => ThenPromise; + nodeify: (fn: Function) => Function; +} + +declare var ThenPromise: ThenPromiseConstructor; + +export = ThenPromise; \ No newline at end of file diff --git a/node_modules/promise/lib/core.js b/node_modules/promise/lib/core.js index 207fb819..aefc987b 100644 --- a/node_modules/promise/lib/core.js +++ b/node_modules/promise/lib/core.js @@ -56,17 +56,17 @@ function Promise(fn) { throw new TypeError('Promises must be constructed via new'); } if (typeof fn !== 'function') { - throw new TypeError('not a function'); + throw new TypeError('Promise constructor\'s argument is not a function'); } - this._45 = 0; - this._81 = 0; - this._65 = null; - this._54 = null; + this._40 = 0; + this._65 = 0; + this._55 = null; + this._72 = null; if (fn === noop) return; doResolve(fn, this); } -Promise._10 = null; -Promise._97 = null; +Promise._37 = null; +Promise._87 = null; Promise._61 = noop; Promise.prototype.then = function(onFulfilled, onRejected) { @@ -84,26 +84,26 @@ function safeThen(self, onFulfilled, onRejected) { res.then(resolve, reject); handle(self, new Handler(onFulfilled, onRejected, res)); }); -}; +} function handle(self, deferred) { - while (self._81 === 3) { - self = self._65; + while (self._65 === 3) { + self = self._55; } - if (Promise._10) { - Promise._10(self); + if (Promise._37) { + Promise._37(self); } - if (self._81 === 0) { - if (self._45 === 0) { - self._45 = 1; - self._54 = deferred; + if (self._65 === 0) { + if (self._40 === 0) { + self._40 = 1; + self._72 = deferred; return; } - if (self._45 === 1) { - self._45 = 2; - self._54 = [self._54, deferred]; + if (self._40 === 1) { + self._40 = 2; + self._72 = [self._72, deferred]; return; } - self._54.push(deferred); + self._72.push(deferred); return; } handleResolved(self, deferred); @@ -111,16 +111,16 @@ function handle(self, deferred) { function handleResolved(self, deferred) { asap(function() { - var cb = self._81 === 1 ? deferred.onFulfilled : deferred.onRejected; + var cb = self._65 === 1 ? deferred.onFulfilled : deferred.onRejected; if (cb === null) { - if (self._81 === 1) { - resolve(deferred.promise, self._65); + if (self._65 === 1) { + resolve(deferred.promise, self._55); } else { - reject(deferred.promise, self._65); + reject(deferred.promise, self._55); } return; } - var ret = tryCallOne(cb, self._65); + var ret = tryCallOne(cb, self._55); if (ret === IS_ERROR) { reject(deferred.promise, LAST_ERROR); } else { @@ -148,8 +148,8 @@ function resolve(self, newValue) { then === self.then && newValue instanceof Promise ) { - self._81 = 3; - self._65 = newValue; + self._65 = 3; + self._55 = newValue; finale(self); return; } else if (typeof then === 'function') { @@ -157,29 +157,29 @@ function resolve(self, newValue) { return; } } - self._81 = 1; - self._65 = newValue; + self._65 = 1; + self._55 = newValue; finale(self); } function reject(self, newValue) { - self._81 = 2; - self._65 = newValue; - if (Promise._97) { - Promise._97(self, newValue); + self._65 = 2; + self._55 = newValue; + if (Promise._87) { + Promise._87(self, newValue); } finale(self); } function finale(self) { - if (self._45 === 1) { - handle(self, self._54); - self._54 = null; + if (self._40 === 1) { + handle(self, self._72); + self._72 = null; } - if (self._45 === 2) { - for (var i = 0; i < self._54.length; i++) { - handle(self, self._54[i]); + if (self._40 === 2) { + for (var i = 0; i < self._72.length; i++) { + handle(self, self._72[i]); } - self._54 = null; + self._72 = null; } } @@ -205,7 +205,7 @@ function doResolve(fn, promise) { if (done) return; done = true; reject(promise, reason); - }) + }); if (!done && res === IS_ERROR) { done = true; reject(promise, LAST_ERROR); diff --git a/node_modules/promise/lib/es6-extensions.js b/node_modules/promise/lib/es6-extensions.js index 1ab6eae5..8ab26669 100644 --- a/node_modules/promise/lib/es6-extensions.js +++ b/node_modules/promise/lib/es6-extensions.js @@ -17,8 +17,8 @@ var EMPTYSTRING = valuePromise(''); function valuePromise(value) { var p = new Promise(Promise._61); - p._81 = 1; - p._65 = value; + p._65 = 1; + p._55 = value; return p; } Promise.resolve = function (value) { @@ -55,11 +55,11 @@ Promise.all = function (arr) { function res(i, val) { if (val && (typeof val === 'object' || typeof val === 'function')) { if (val instanceof Promise && val.then === Promise.prototype.then) { - while (val._81 === 3) { - val = val._65; + while (val._65 === 3) { + val = val._55; } - if (val._81 === 1) return res(i, val._65); - if (val._81 === 2) reject(val._65); + if (val._65 === 1) return res(i, val._55); + if (val._65 === 2) reject(val._55); val.then(function (val) { res(i, val); }, reject); diff --git a/node_modules/promise/lib/node-extensions.js b/node_modules/promise/lib/node-extensions.js index 890ae45d..157cddc2 100644 --- a/node_modules/promise/lib/node-extensions.js +++ b/node_modules/promise/lib/node-extensions.js @@ -18,7 +18,7 @@ Promise.denodeify = function (fn, argumentCount) { } else { return denodeifyWithoutCount(fn); } -} +}; var callbackFn = ( 'function (err, res) {' + @@ -113,7 +113,7 @@ Promise.nodeify = function (fn) { } } } -} +}; Promise.prototype.nodeify = function (callback, ctx) { if (typeof callback != 'function') return this; @@ -127,4 +127,4 @@ Promise.prototype.nodeify = function (callback, ctx) { callback.call(ctx, err); }); }); -} +}; diff --git a/node_modules/promise/lib/rejection-tracking.js b/node_modules/promise/lib/rejection-tracking.js index 088a0dea..10ccce30 100644 --- a/node_modules/promise/lib/rejection-tracking.js +++ b/node_modules/promise/lib/rejection-tracking.js @@ -12,8 +12,8 @@ var enabled = false; exports.disable = disable; function disable() { enabled = false; - Promise._10 = null; - Promise._97 = null; + Promise._37 = null; + Promise._87 = null; } exports.enable = enable; @@ -24,27 +24,27 @@ function enable(options) { var id = 0; var displayId = 0; var rejections = {}; - Promise._10 = function (promise) { + Promise._37 = function (promise) { if ( - promise._81 === 2 && // IS REJECTED - rejections[promise._72] + promise._65 === 2 && // IS REJECTED + rejections[promise._51] ) { - if (rejections[promise._72].logged) { - onHandled(promise._72); + if (rejections[promise._51].logged) { + onHandled(promise._51); } else { - clearTimeout(rejections[promise._72].timeout); + clearTimeout(rejections[promise._51].timeout); } - delete rejections[promise._72]; + delete rejections[promise._51]; } }; - Promise._97 = function (promise, err) { - if (promise._45 === 0) { // not yet handled - promise._72 = id++; - rejections[promise._72] = { + Promise._87 = function (promise, err) { + if (promise._40 === 0) { // not yet handled + promise._51 = id++; + rejections[promise._51] = { displayId: null, error: err, timeout: setTimeout( - onUnhandled.bind(null, promise._72), + onUnhandled.bind(null, promise._51), // For reference errors and type errors, this almost always // means the programmer made a mistake, so log them after just // 100ms diff --git a/node_modules/promise/lib/synchronous.js b/node_modules/promise/lib/synchronous.js index 2f97451a..49399644 100644 --- a/node_modules/promise/lib/synchronous.js +++ b/node_modules/promise/lib/synchronous.js @@ -17,38 +17,38 @@ Promise.enableSynchronous = function () { }; Promise.prototype.getValue = function () { - if (this._81 === 3) { - return this._65.getValue(); + if (this._65 === 3) { + return this._55.getValue(); } if (!this.isFulfilled()) { throw new Error('Cannot get a value of an unfulfilled promise.'); } - return this._65; + return this._55; }; Promise.prototype.getReason = function () { - if (this._81 === 3) { - return this._65.getReason(); + if (this._65 === 3) { + return this._55.getReason(); } if (!this.isRejected()) { throw new Error('Cannot get a rejection reason of a non-rejected promise.'); } - return this._65; + return this._55; }; Promise.prototype.getState = function () { - if (this._81 === 3) { - return this._65.getState(); + if (this._65 === 3) { + return this._55.getState(); } - if (this._81 === -1 || this._81 === -2) { + if (this._65 === -1 || this._65 === -2) { return 0; } - return this._81; + return this._65; }; }; diff --git a/node_modules/promise/package.json b/node_modules/promise/package.json index 40224cae..385b07d7 100644 --- a/node_modules/promise/package.json +++ b/node_modules/promise/package.json @@ -1,46 +1,32 @@ { "_args": [ [ - { - "raw": "promise@^7.1.1", - "scope": null, - "escapedName": "promise", - "name": "promise", - "rawSpec": "^7.1.1", - "spec": ">=7.1.1 <8.0.0", - "type": "range" - }, - "/Users/Michal/Desktop/dev/react-slider/node_modules/fbjs" + "promise@7.3.1", + "/Users/Michal/Desktop/dev/react-slider" ] ], - "_from": "promise@>=7.1.1 <8.0.0", - "_id": "promise@7.1.1", - "_inCache": true, + "_from": "promise@7.3.1", + "_id": "promise@7.3.1", + "_inBundle": false, + "_integrity": "sha512-nolQXZ/4L+bP/UGlkfaIujX9BKxGwmQ9OT4mOt5yvy8iK1h3wqTEJCijzGANTCCl9nWjY41juyAn2K3Q1hLLTg==", "_location": "/promise", - "_nodeVersion": "1.6.2", - "_npmUser": { - "name": "forbeslindesay", - "email": "forbes@lindesay.co.uk" - }, - "_npmVersion": "2.7.1", "_phantomChildren": {}, "_requested": { - "raw": "promise@^7.1.1", - "scope": null, - "escapedName": "promise", + "type": "version", + "registry": true, + "raw": "promise@7.3.1", "name": "promise", - "rawSpec": "^7.1.1", - "spec": ">=7.1.1 <8.0.0", - "type": "range" + "escapedName": "promise", + "rawSpec": "7.3.1", + "saveSpec": null, + "fetchSpec": "7.3.1" }, "_requiredBy": [ "/fbjs" ], - "_resolved": "https://registry.npmjs.org/promise/-/promise-7.1.1.tgz", - "_shasum": "489654c692616b8aa55b0724fa809bb7db49c5bf", - "_shrinkwrap": null, - "_spec": "promise@^7.1.1", - "_where": "/Users/Michal/Desktop/dev/react-slider/node_modules/fbjs", + "_resolved": "https://registry.npmjs.org/promise/-/promise-7.3.1.tgz", + "_spec": "7.3.1", + "_where": "/Users/Michal/Desktop/dev/react-slider", "author": { "name": "ForbesLindesay" }, @@ -59,29 +45,10 @@ "promises-aplus-tests": "*", "rimraf": "^2.3.2" }, - "directories": {}, - "dist": { - "shasum": "489654c692616b8aa55b0724fa809bb7db49c5bf", - "tarball": "https://registry.npmjs.org/promise/-/promise-7.1.1.tgz" - }, - "gitHead": "90757a38c86975f36893012581b72315b352d482", "homepage": "https://github.com/then/promise#readme", "license": "MIT", "main": "index.js", - "maintainers": [ - { - "name": "forbeslindesay", - "email": "forbes@lindesay.co.uk" - }, - { - "name": "nathan7", - "email": "nathan@nathan7.eu" - } - ], "name": "promise", - "optionalDependencies": {}, - "readme": "\n# promise\n\nThis is a simple implementation of Promises. It is a super set of ES6 Promises designed to have readable, performant code and to provide just the extensions that are absolutely necessary for using promises today.\n\nFor detailed tutorials on its use, see www.promisejs.org\n\n**N.B.** This promise exposes internals via underscore (`_`) prefixed properties. If you use these, your code will break with each new release.\n\n[![travis][travis-image]][travis-url]\n[![dep][dep-image]][dep-url]\n[![npm][npm-image]][npm-url]\n[![downloads][downloads-image]][downloads-url]\n\n[travis-image]: https://img.shields.io/travis/then/promise.svg?style=flat\n[travis-url]: https://travis-ci.org/then/promise\n[dep-image]: https://img.shields.io/gemnasium/then/promise.svg?style=flat\n[dep-url]: https://gemnasium.com/then/promise\n[npm-image]: https://img.shields.io/npm/v/promise.svg?style=flat\n[npm-url]: https://npmjs.org/package/promise\n[downloads-image]: https://img.shields.io/npm/dm/promise.svg?style=flat\n[downloads-url]: https://npmjs.org/package/promise\n\n## Installation\n\n**Server:**\n\n $ npm install promise\n\n**Client:**\n\nYou can use browserify on the client, or use the pre-compiled script that acts as a polyfill.\n\n```html\n\n```\n\nNote that the [es5-shim](https://github.com/es-shims/es5-shim) must be loaded before this library to support browsers pre IE9.\n\n```html\n\n```\n\n## Usage\n\nThe example below shows how you can load the promise library (in a way that works on both client and server using node or browserify). It then demonstrates creating a promise from scratch. You simply call `new Promise(fn)`. There is a complete specification for what is returned by this method in [Promises/A+](http://promises-aplus.github.com/promises-spec/).\n\n```javascript\nvar Promise = require('promise');\n\nvar promise = new Promise(function (resolve, reject) {\n get('http://www.google.com', function (err, res) {\n if (err) reject(err);\n else resolve(res);\n });\n});\n```\n\nIf you need [domains](https://iojs.org/api/domain.html) support, you should instead use:\n\n```js\nvar Promise = require('promise/domains');\n```\n\nIf you are in an environment that implements `setImmediate` and don't want the optimisations provided by asap, you can use:\n\n```js\nvar Promise = require('promise/setimmediate');\n```\n\nIf you only want part of the features, e.g. just a pure ES6 polyfill:\n\n```js\nvar Promise = require('promise/lib/es6-extensions');\n// or require('promise/domains/es6-extensions');\n// or require('promise/setimmediate/es6-extensions');\n```\n\n## Unhandled Rejections\n\nBy default, promises silence any unhandled rejections.\n\nYou can enable logging of unhandled ReferenceErrors and TypeErrors via:\n\n```js\nrequire('promise/lib/rejection-tracking').enable();\n```\n\nDue to the performance cost, you should only do this during development.\n\nYou can enable logging of all unhandled rejections if you need to debug an exception you think is being swallowed by promises:\n\n```js\nrequire('promise/lib/rejection-tracking').enable(\n {allRejections: true}\n);\n```\n\nDue to the high probability of false positives, I only recommend using this when debugging specific issues that you think may be being swallowed. For the preferred debugging method, see `Promise#done(onFulfilled, onRejected)`.\n\n`rejection-tracking.enable(options)` takes the following options:\n\n - allRejections (`boolean`) - track all exceptions, not just reference errors and type errors. Note that this has a high probability of resulting in false positives if your code loads data optimisticly\n - whitelist (`Array`) - this defaults to `[ReferenceError, TypeError]` but you can override it with your own list of error constructors to track.\n - `onUnhandled(id, error)` and `onHandled(id, error)` - you can use these to provide your own customised display for errors. Note that if possible you should indicate that the error was a false positive if `onHandled` is called. `onHandled` is only called if `onUnhandled` has already been called.\n\nTo reduce the chance of false-positives there is a delay of up to 2 seconds before errors are logged. This means that if you attach an error handler within 2 seconds, it won't be logged as a false positive. ReferenceErrors and TypeErrors are only subject to a 100ms delay due to the higher likelihood that the error is due to programmer error.\n\n## API\n\nBefore all examples, you will need:\n\n```js\nvar Promise = require('promise');\n```\n\n### new Promise(resolver)\n\nThis creates and returns a new promise. `resolver` must be a function. The `resolver` function is passed two arguments:\n\n 1. `resolve` should be called with a single argument. If it is called with a non-promise value then the promise is fulfilled with that value. If it is called with a promise (A) then the returned promise takes on the state of that new promise (A).\n 2. `reject` should be called with a single argument. The returned promise will be rejected with that argument.\n\n### Static Functions\n\n These methods are invoked by calling `Promise.methodName`.\n\n#### Promise.resolve(value)\n\n(deprecated aliases: `Promise.from(value)`, `Promise.cast(value)`)\n\nConverts values and foreign promises into Promises/A+ promises. If you pass it a value then it returns a Promise for that value. If you pass it something that is close to a promise (such as a jQuery attempt at a promise) it returns a Promise that takes on the state of `value` (rejected or fulfilled).\n\n#### Promise.reject(value)\n\nReturns a rejected promise with the given value.\n\n#### Promise.all(array)\n\nReturns a promise for an array. If it is called with a single argument that `Array.isArray` then this returns a promise for a copy of that array with any promises replaced by their fulfilled values. e.g.\n\n```js\nPromise.all([Promise.resolve('a'), 'b', Promise.resolve('c')])\n .then(function (res) {\n assert(res[0] === 'a')\n assert(res[1] === 'b')\n assert(res[2] === 'c')\n })\n```\n\n#### Promise.denodeify(fn)\n\n_Non Standard_\n\nTakes a function which accepts a node style callback and returns a new function that returns a promise instead.\n\ne.g.\n\n```javascript\nvar fs = require('fs')\n\nvar read = Promise.denodeify(fs.readFile)\nvar write = Promise.denodeify(fs.writeFile)\n\nvar p = read('foo.json', 'utf8')\n .then(function (str) {\n return write('foo.json', JSON.stringify(JSON.parse(str), null, ' '), 'utf8')\n })\n```\n\n#### Promise.nodeify(fn)\n\n_Non Standard_\n\nThe twin to `denodeify` is useful when you want to export an API that can be used by people who haven't learnt about the brilliance of promises yet.\n\n```javascript\nmodule.exports = Promise.nodeify(awesomeAPI)\nfunction awesomeAPI(a, b) {\n return download(a, b)\n}\n```\n\nIf the last argument passed to `module.exports` is a function, then it will be treated like a node.js callback and not parsed on to the child function, otherwise the API will just return a promise.\n\n### Prototype Methods\n\nThese methods are invoked on a promise instance by calling `myPromise.methodName`\n\n### Promise#then(onFulfilled, onRejected)\n\nThis method follows the [Promises/A+ spec](http://promises-aplus.github.io/promises-spec/). It explains things very clearly so I recommend you read it.\n\nEither `onFulfilled` or `onRejected` will be called and they will not be called more than once. They will be passed a single argument and will always be called asynchronously (in the next turn of the event loop).\n\nIf the promise is fulfilled then `onFulfilled` is called. If the promise is rejected then `onRejected` is called.\n\nThe call to `.then` also returns a promise. If the handler that is called returns a promise, the promise returned by `.then` takes on the state of that returned promise. If the handler that is called returns a value that is not a promise, the promise returned by `.then` will be fulfilled with that value. If the handler that is called throws an exception then the promise returned by `.then` is rejected with that exception.\n\n#### Promise#catch(onRejected)\n\nSugar for `Promise#then(null, onRejected)`, to mirror `catch` in synchronous code.\n\n#### Promise#done(onFulfilled, onRejected)\n\n_Non Standard_\n\nThe same semantics as `.then` except that it does not return a promise and any exceptions are re-thrown so that they can be logged (crashing the application in non-browser environments)\n\n#### Promise#nodeify(callback)\n\n_Non Standard_\n\nIf `callback` is `null` or `undefined` it just returns `this`. If `callback` is a function it is called with rejection reason as the first argument and result as the second argument (as per the node.js convention).\n\nThis lets you write API functions that look like:\n\n```javascript\nfunction awesomeAPI(foo, bar, callback) {\n return internalAPI(foo, bar)\n .then(parseResult)\n .then(null, retryErrors)\n .nodeify(callback)\n}\n```\n\nPeople who use typical node.js style callbacks will be able to just pass a callback and get the expected behavior. The enlightened people can not pass a callback and will get awesome promises.\n\n## License\n\n MIT\n", - "readmeFilename": "Readme.md", "repository": { "type": "git", "url": "git+https://github.com/then/promise.git" @@ -98,5 +65,5 @@ "test-memory-leak": "node --expose-gc test/memory-leak.js", "test-resolve": "mocha test/resolver-tests.js --timeout 200 --slow 999999" }, - "version": "7.1.1" + "version": "7.3.1" } diff --git a/node_modules/promise/setimmediate/core.js b/node_modules/promise/setimmediate/core.js index 46c6a2c2..a84fb3da 100644 --- a/node_modules/promise/setimmediate/core.js +++ b/node_modules/promise/setimmediate/core.js @@ -56,17 +56,17 @@ function Promise(fn) { throw new TypeError('Promises must be constructed via new'); } if (typeof fn !== 'function') { - throw new TypeError('not a function'); + throw new TypeError('Promise constructor\'s argument is not a function'); } - this._45 = 0; - this._81 = 0; - this._65 = null; - this._54 = null; + this._40 = 0; + this._65 = 0; + this._55 = null; + this._72 = null; if (fn === noop) return; doResolve(fn, this); } -Promise._10 = null; -Promise._97 = null; +Promise._37 = null; +Promise._87 = null; Promise._61 = noop; Promise.prototype.then = function(onFulfilled, onRejected) { @@ -84,26 +84,26 @@ function safeThen(self, onFulfilled, onRejected) { res.then(resolve, reject); handle(self, new Handler(onFulfilled, onRejected, res)); }); -}; +} function handle(self, deferred) { - while (self._81 === 3) { - self = self._65; + while (self._65 === 3) { + self = self._55; } - if (Promise._10) { - Promise._10(self); + if (Promise._37) { + Promise._37(self); } - if (self._81 === 0) { - if (self._45 === 0) { - self._45 = 1; - self._54 = deferred; + if (self._65 === 0) { + if (self._40 === 0) { + self._40 = 1; + self._72 = deferred; return; } - if (self._45 === 1) { - self._45 = 2; - self._54 = [self._54, deferred]; + if (self._40 === 1) { + self._40 = 2; + self._72 = [self._72, deferred]; return; } - self._54.push(deferred); + self._72.push(deferred); return; } handleResolved(self, deferred); @@ -111,16 +111,16 @@ function handle(self, deferred) { function handleResolved(self, deferred) { setImmediate(function() { - var cb = self._81 === 1 ? deferred.onFulfilled : deferred.onRejected; + var cb = self._65 === 1 ? deferred.onFulfilled : deferred.onRejected; if (cb === null) { - if (self._81 === 1) { - resolve(deferred.promise, self._65); + if (self._65 === 1) { + resolve(deferred.promise, self._55); } else { - reject(deferred.promise, self._65); + reject(deferred.promise, self._55); } return; } - var ret = tryCallOne(cb, self._65); + var ret = tryCallOne(cb, self._55); if (ret === IS_ERROR) { reject(deferred.promise, LAST_ERROR); } else { @@ -148,8 +148,8 @@ function resolve(self, newValue) { then === self.then && newValue instanceof Promise ) { - self._81 = 3; - self._65 = newValue; + self._65 = 3; + self._55 = newValue; finale(self); return; } else if (typeof then === 'function') { @@ -157,29 +157,29 @@ function resolve(self, newValue) { return; } } - self._81 = 1; - self._65 = newValue; + self._65 = 1; + self._55 = newValue; finale(self); } function reject(self, newValue) { - self._81 = 2; - self._65 = newValue; - if (Promise._97) { - Promise._97(self, newValue); + self._65 = 2; + self._55 = newValue; + if (Promise._87) { + Promise._87(self, newValue); } finale(self); } function finale(self) { - if (self._45 === 1) { - handle(self, self._54); - self._54 = null; + if (self._40 === 1) { + handle(self, self._72); + self._72 = null; } - if (self._45 === 2) { - for (var i = 0; i < self._54.length; i++) { - handle(self, self._54[i]); + if (self._40 === 2) { + for (var i = 0; i < self._72.length; i++) { + handle(self, self._72[i]); } - self._54 = null; + self._72 = null; } } @@ -205,7 +205,7 @@ function doResolve(fn, promise) { if (done) return; done = true; reject(promise, reason); - }) + }); if (!done && res === IS_ERROR) { done = true; reject(promise, LAST_ERROR); diff --git a/node_modules/promise/setimmediate/es6-extensions.js b/node_modules/promise/setimmediate/es6-extensions.js index 1ab6eae5..8ab26669 100644 --- a/node_modules/promise/setimmediate/es6-extensions.js +++ b/node_modules/promise/setimmediate/es6-extensions.js @@ -17,8 +17,8 @@ var EMPTYSTRING = valuePromise(''); function valuePromise(value) { var p = new Promise(Promise._61); - p._81 = 1; - p._65 = value; + p._65 = 1; + p._55 = value; return p; } Promise.resolve = function (value) { @@ -55,11 +55,11 @@ Promise.all = function (arr) { function res(i, val) { if (val && (typeof val === 'object' || typeof val === 'function')) { if (val instanceof Promise && val.then === Promise.prototype.then) { - while (val._81 === 3) { - val = val._65; + while (val._65 === 3) { + val = val._55; } - if (val._81 === 1) return res(i, val._65); - if (val._81 === 2) reject(val._65); + if (val._65 === 1) return res(i, val._55); + if (val._65 === 2) reject(val._55); val.then(function (val) { res(i, val); }, reject); diff --git a/node_modules/promise/setimmediate/node-extensions.js b/node_modules/promise/setimmediate/node-extensions.js index 14a03022..f03e861d 100644 --- a/node_modules/promise/setimmediate/node-extensions.js +++ b/node_modules/promise/setimmediate/node-extensions.js @@ -18,7 +18,7 @@ Promise.denodeify = function (fn, argumentCount) { } else { return denodeifyWithoutCount(fn); } -} +}; var callbackFn = ( 'function (err, res) {' + @@ -113,7 +113,7 @@ Promise.nodeify = function (fn) { } } } -} +}; Promise.prototype.nodeify = function (callback, ctx) { if (typeof callback != 'function') return this; @@ -127,4 +127,4 @@ Promise.prototype.nodeify = function (callback, ctx) { callback.call(ctx, err); }); }); -} +}; diff --git a/node_modules/promise/setimmediate/rejection-tracking.js b/node_modules/promise/setimmediate/rejection-tracking.js index 088a0dea..10ccce30 100644 --- a/node_modules/promise/setimmediate/rejection-tracking.js +++ b/node_modules/promise/setimmediate/rejection-tracking.js @@ -12,8 +12,8 @@ var enabled = false; exports.disable = disable; function disable() { enabled = false; - Promise._10 = null; - Promise._97 = null; + Promise._37 = null; + Promise._87 = null; } exports.enable = enable; @@ -24,27 +24,27 @@ function enable(options) { var id = 0; var displayId = 0; var rejections = {}; - Promise._10 = function (promise) { + Promise._37 = function (promise) { if ( - promise._81 === 2 && // IS REJECTED - rejections[promise._72] + promise._65 === 2 && // IS REJECTED + rejections[promise._51] ) { - if (rejections[promise._72].logged) { - onHandled(promise._72); + if (rejections[promise._51].logged) { + onHandled(promise._51); } else { - clearTimeout(rejections[promise._72].timeout); + clearTimeout(rejections[promise._51].timeout); } - delete rejections[promise._72]; + delete rejections[promise._51]; } }; - Promise._97 = function (promise, err) { - if (promise._45 === 0) { // not yet handled - promise._72 = id++; - rejections[promise._72] = { + Promise._87 = function (promise, err) { + if (promise._40 === 0) { // not yet handled + promise._51 = id++; + rejections[promise._51] = { displayId: null, error: err, timeout: setTimeout( - onUnhandled.bind(null, promise._72), + onUnhandled.bind(null, promise._51), // For reference errors and type errors, this almost always // means the programmer made a mistake, so log them after just // 100ms diff --git a/node_modules/promise/setimmediate/synchronous.js b/node_modules/promise/setimmediate/synchronous.js index 2f97451a..49399644 100644 --- a/node_modules/promise/setimmediate/synchronous.js +++ b/node_modules/promise/setimmediate/synchronous.js @@ -17,38 +17,38 @@ Promise.enableSynchronous = function () { }; Promise.prototype.getValue = function () { - if (this._81 === 3) { - return this._65.getValue(); + if (this._65 === 3) { + return this._55.getValue(); } if (!this.isFulfilled()) { throw new Error('Cannot get a value of an unfulfilled promise.'); } - return this._65; + return this._55; }; Promise.prototype.getReason = function () { - if (this._81 === 3) { - return this._65.getReason(); + if (this._65 === 3) { + return this._55.getReason(); } if (!this.isRejected()) { throw new Error('Cannot get a rejection reason of a non-rejected promise.'); } - return this._65; + return this._55; }; Promise.prototype.getState = function () { - if (this._81 === 3) { - return this._65.getState(); + if (this._65 === 3) { + return this._55.getState(); } - if (this._81 === -1 || this._81 === -2) { + if (this._65 === -1 || this._65 === -2) { return 0; } - return this._81; + return this._65; }; }; diff --git a/node_modules/promise/src/core.js b/node_modules/promise/src/core.js index 7513f27d..312010d9 100644 --- a/node_modules/promise/src/core.js +++ b/node_modules/promise/src/core.js @@ -56,7 +56,7 @@ function Promise(fn) { throw new TypeError('Promises must be constructed via new'); } if (typeof fn !== 'function') { - throw new TypeError('not a function'); + throw new TypeError('Promise constructor\'s argument is not a function'); } this._deferredState = 0; this._state = 0; @@ -84,7 +84,7 @@ function safeThen(self, onFulfilled, onRejected) { res.then(resolve, reject); handle(self, new Handler(onFulfilled, onRejected, res)); }); -}; +} function handle(self, deferred) { while (self._state === 3) { self = self._value; @@ -205,7 +205,7 @@ function doResolve(fn, promise) { if (done) return; done = true; reject(promise, reason); - }) + }); if (!done && res === IS_ERROR) { done = true; reject(promise, LAST_ERROR); diff --git a/node_modules/promise/src/node-extensions.js b/node_modules/promise/src/node-extensions.js index 890ae45d..157cddc2 100644 --- a/node_modules/promise/src/node-extensions.js +++ b/node_modules/promise/src/node-extensions.js @@ -18,7 +18,7 @@ Promise.denodeify = function (fn, argumentCount) { } else { return denodeifyWithoutCount(fn); } -} +}; var callbackFn = ( 'function (err, res) {' + @@ -113,7 +113,7 @@ Promise.nodeify = function (fn) { } } } -} +}; Promise.prototype.nodeify = function (callback, ctx) { if (typeof callback != 'function') return this; @@ -127,4 +127,4 @@ Promise.prototype.nodeify = function (callback, ctx) { callback.call(ctx, err); }); }); -} +}; diff --git a/node_modules/prop-types/CHANGELOG.md b/node_modules/prop-types/CHANGELOG.md index 8a627ee4..f921c8b6 100644 --- a/node_modules/prop-types/CHANGELOG.md +++ b/node_modules/prop-types/CHANGELOG.md @@ -1,3 +1,8 @@ +## 15.6.0 + +* Switch from BSD + Patents to MIT license +* Add PropTypes.exact, like PropTypes.shape but warns on extra object keys. ([@thejameskyle](https://github.com/thejameskyle) and [@aweary](https://github.com/aweary) in [#41](https://github.com/reactjs/prop-types/pull/41) and [#87](https://github.com/reactjs/prop-types/pull/87)) + ## 15.5.10 * Fix a false positive warning when using a production UMD build of a third-party library with a DEV version of React. ([@gaearon](https://github.com/gaearon) in [#50](https://github.com/reactjs/prop-types/pull/50)) diff --git a/node_modules/prop-types/LICENSE b/node_modules/prop-types/LICENSE index edbd6d9b..188fb2b0 100644 --- a/node_modules/prop-types/LICENSE +++ b/node_modules/prop-types/LICENSE @@ -1,31 +1,21 @@ -BSD License - -For React software +MIT License Copyright (c) 2013-present, Facebook, Inc. -All rights reserved. - -Redistribution and use 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. +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: - * Neither the name Facebook nor the names of its contributors may be used to - endorse or promote products derived from this software without specific - prior written permission. +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. -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 HOLDER 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. \ No newline at end of file +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/node_modules/prop-types/PATENTS b/node_modules/prop-types/PATENTS deleted file mode 100644 index 9c9f8e87..00000000 --- a/node_modules/prop-types/PATENTS +++ /dev/null @@ -1,33 +0,0 @@ -Additional Grant of Patent Rights Version 2 - -"Software" means the React software distributed by Facebook, Inc. - -Facebook, Inc. ("Facebook") hereby grants to each recipient of the Software -("you") a perpetual, worldwide, royalty-free, non-exclusive, irrevocable -(subject to the termination provision below) license under any Necessary -Claims, to make, have made, use, sell, offer to sell, import, and otherwise -transfer the Software. For avoidance of doubt, no license is granted under -Facebook's rights in any patent claims that are infringed by (i) modifications -to the Software made by you or any third party or (ii) the Software in -combination with any software or other technology. - -The license granted hereunder will terminate, automatically and without notice, -if you (or any of your subsidiaries, corporate affiliates or agents) initiate -directly or indirectly, or take a direct financial interest in, any Patent -Assertion: (i) against Facebook or any of its subsidiaries or corporate -affiliates, (ii) against any party if such Patent Assertion arises in whole or -in part from any software, technology, product or service of Facebook or any of -its subsidiaries or corporate affiliates, or (iii) against any party relating -to the Software. Notwithstanding the foregoing, if Facebook or any of its -subsidiaries or corporate affiliates files a lawsuit alleging patent -infringement against you in the first instance, and you respond by filing a -patent infringement counterclaim in that lawsuit against that party that is -unrelated to the Software, the license granted hereunder will not terminate -under section (i) of this paragraph due to such counterclaim. - -A "Necessary Claim" is a claim of a patent owned by Facebook that is -necessarily infringed by the Software standing alone. - -A "Patent Assertion" is any lawsuit or other action alleging direct, indirect, -or contributory infringement or inducement to infringe any patent, including a -cross-claim or counterclaim. diff --git a/node_modules/prop-types/README.md b/node_modules/prop-types/README.md index 386fe2a2..092f76a1 100644 --- a/node_modules/prop-types/README.md +++ b/node_modules/prop-types/README.md @@ -20,16 +20,32 @@ import PropTypes from 'prop-types'; // ES6 var PropTypes = require('prop-types'); // ES5 with npm ``` -If you prefer a ` + + + +``` + +* [**cdnjs**](https://cdnjs.com/libraries/prop-types) ```html - + - + ``` +To load a specific version of `prop-types` replace `15.6.0` with the version number. + ## Usage PropTypes was originally exposed as part of the React core module, and is @@ -37,7 +53,7 @@ commonly used with React components. Here is an example of using PropTypes with a React component, which also documents the different validators provided: -```jsx +```js import React from 'react'; import PropTypes from 'prop-types'; @@ -133,6 +149,8 @@ Refer to the [React documentation](https://facebook.github.io/react/docs/typeche Check out [Migrating from React.PropTypes](https://facebook.github.io/react/blog/2017/04/07/react-v15.5.0.html#migrating-from-react.proptypes) for details on how to migrate to `prop-types` from `React.PropTypes`. +Note that this blog posts **mentions a codemod script that performs the conversion automatically**. + There are also important notes below. ## How to Depend on This Package? @@ -161,7 +179,7 @@ For libraries, we *also* recommend leaving it in `dependencies`: Make sure that the version range uses a caret (`^`) and thus is broad enough for npm to efficiently deduplicate packages. -For UMD bundles of your comoponents, make sure you **don’t** include `PropTypes` in the build. Usually this is done by marking it as an external (the specifics depend on your bundler), just like you do with React. +For UMD bundles of your components, make sure you **don’t** include `PropTypes` in the build. Usually this is done by marking it as an external (the specifics depend on your bundler), just like you do with React. ## Compatibility @@ -230,7 +248,7 @@ See below for more info. **You might also see this error** if you’re calling a `PropTypes` validator from your own custom `PropTypes` validator. In this case, the fix is to make sure that you are passing *all* of the arguments to the inner function. There is a more in-depth explanation of how to fix it [on this page](https://facebook.github.io/react/warnings/dont-call-proptypes.html#fixing-the-false-positive-in-third-party-proptypes). Alternatively, you can temporarily keep using `React.PropTypes` until React 16, as it would still only warn in this case. -If you use a bundler like Browserify or Webpack, don’t forget to [follow these instructions](https://facebook.github.io/react/docs/installation.html#development-and-production-versions) to correctly bundle your application in development or production mode. Otherwise you’ll ship unnecessary code to your users. +If you use a bundler like Browserify or Webpack, don’t forget to [follow these instructions](https://reactjs.org/docs/optimizing-performance.html#use-the-production-build) to correctly bundle your application in development or production mode. Otherwise you’ll ship unnecessary code to your users. ## PropTypes.checkPropTypes @@ -241,7 +259,7 @@ you are using PropTypes without React then you may want to manually call ```js const myPropTypes = { name: PropTypes.string, - age: PropTypes. number, + age: PropTypes.number, // ... define your prop validations }; diff --git a/node_modules/prop-types/checkPropTypes.js b/node_modules/prop-types/checkPropTypes.js index c2b536f9..0802c360 100644 --- a/node_modules/prop-types/checkPropTypes.js +++ b/node_modules/prop-types/checkPropTypes.js @@ -1,10 +1,8 @@ /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. + * Copyright (c) 2013-present, Facebook, Inc. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; @@ -38,7 +36,7 @@ function checkPropTypes(typeSpecs, values, location, componentName, getStack) { try { // This is intentionally an invariant that gets caught. It's the same // behavior as without this statement except with a better message. - invariant(typeof typeSpecs[typeSpecName] === 'function', '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'React.PropTypes.', componentName || 'React class', location, typeSpecName); + invariant(typeof typeSpecs[typeSpecName] === 'function', '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'the `prop-types` package, but received `%s`.', componentName || 'React class', location, typeSpecName, typeof typeSpecs[typeSpecName]); error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret); } catch (ex) { error = ex; diff --git a/node_modules/prop-types/factory.js b/node_modules/prop-types/factory.js index 7758ec1b..abdf8e6d 100644 --- a/node_modules/prop-types/factory.js +++ b/node_modules/prop-types/factory.js @@ -1,10 +1,8 @@ /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. + * Copyright (c) 2013-present, Facebook, Inc. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/node_modules/prop-types/factoryWithThrowingShims.js b/node_modules/prop-types/factoryWithThrowingShims.js index 840f68ee..2b3c9242 100644 --- a/node_modules/prop-types/factoryWithThrowingShims.js +++ b/node_modules/prop-types/factoryWithThrowingShims.js @@ -1,10 +1,8 @@ /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. + * Copyright (c) 2013-present, Facebook, Inc. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; @@ -49,7 +47,8 @@ module.exports = function() { objectOf: getShim, oneOf: getShim, oneOfType: getShim, - shape: getShim + shape: getShim, + exact: getShim }; ReactPropTypes.checkPropTypes = emptyFunction; diff --git a/node_modules/prop-types/factoryWithTypeCheckers.js b/node_modules/prop-types/factoryWithTypeCheckers.js index b3246b0f..7c962b16 100644 --- a/node_modules/prop-types/factoryWithTypeCheckers.js +++ b/node_modules/prop-types/factoryWithTypeCheckers.js @@ -1,10 +1,8 @@ /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. + * Copyright (c) 2013-present, Facebook, Inc. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; @@ -12,6 +10,7 @@ var emptyFunction = require('fbjs/lib/emptyFunction'); var invariant = require('fbjs/lib/invariant'); var warning = require('fbjs/lib/warning'); +var assign = require('object-assign'); var ReactPropTypesSecret = require('./lib/ReactPropTypesSecret'); var checkPropTypes = require('./checkPropTypes'); @@ -110,7 +109,8 @@ module.exports = function(isValidElement, throwOnDirectAccess) { objectOf: createObjectOfTypeChecker, oneOf: createEnumTypeChecker, oneOfType: createUnionTypeChecker, - shape: createShapeTypeChecker + shape: createShapeTypeChecker, + exact: createStrictShapeTypeChecker, }; /** @@ -325,7 +325,7 @@ module.exports = function(isValidElement, throwOnDirectAccess) { if (typeof checker !== 'function') { warning( false, - 'Invalid argument supplid to oneOfType. Expected an array of check functions, but ' + + 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' + 'received %s at index %s.', getPostfixForTypeWarning(checker), i @@ -379,6 +379,36 @@ module.exports = function(isValidElement, throwOnDirectAccess) { return createChainableTypeChecker(validate); } + function createStrictShapeTypeChecker(shapeTypes) { + function validate(props, propName, componentName, location, propFullName) { + var propValue = props[propName]; + var propType = getPropType(propValue); + if (propType !== 'object') { + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.')); + } + // We need to check all keys in case some are required but missing from + // props. + var allKeys = assign({}, props[propName], shapeTypes); + for (var key in allKeys) { + var checker = shapeTypes[key]; + if (!checker) { + return new PropTypeError( + 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' + + '\nBad object: ' + JSON.stringify(props[propName], null, ' ') + + '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ') + ); + } + var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret); + if (error) { + return error; + } + } + return null; + } + + return createChainableTypeChecker(validate); + } + function isNode(propValue) { switch (typeof propValue) { case 'number': diff --git a/node_modules/prop-types/index.js b/node_modules/prop-types/index.js index 8f94a31f..11bfceab 100644 --- a/node_modules/prop-types/index.js +++ b/node_modules/prop-types/index.js @@ -1,10 +1,8 @@ /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. + * Copyright (c) 2013-present, Facebook, Inc. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ if (process.env.NODE_ENV !== 'production') { diff --git a/node_modules/prop-types/lib/ReactPropTypesSecret.js b/node_modules/prop-types/lib/ReactPropTypesSecret.js index 15ca6a94..f54525e7 100644 --- a/node_modules/prop-types/lib/ReactPropTypesSecret.js +++ b/node_modules/prop-types/lib/ReactPropTypesSecret.js @@ -1,10 +1,8 @@ /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. + * Copyright (c) 2013-present, Facebook, Inc. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/node_modules/prop-types/package.json b/node_modules/prop-types/package.json index f90cb322..e074c5b6 100644 --- a/node_modules/prop-types/package.json +++ b/node_modules/prop-types/package.json @@ -1,50 +1,28 @@ { - "_args": [ - [ - { - "raw": "prop-types", - "scope": null, - "escapedName": "prop-types", - "name": "prop-types", - "rawSpec": "", - "spec": "latest", - "type": "tag" - }, - "/Users/Michal/Desktop/dev/react-slider" - ] - ], - "_from": "prop-types@latest", - "_id": "prop-types@15.5.10", - "_inCache": true, + "_from": "prop-types", + "_id": "prop-types@15.6.1", + "_inBundle": false, + "_integrity": "sha512-4ec7bY1Y66LymSUOH/zARVYObB23AT2h8cf6e/O6ZALB/N0sqZFEx7rq6EYPX2MkOdKORuooI/H5k9TlR4q7kQ==", "_location": "/prop-types", - "_nodeVersion": "7.7.2", - "_npmOperationalInternal": { - "host": "packages-18-east.internal.npmjs.com", - "tmp": "tmp/prop-types-15.5.10.tgz_1494600601653_0.7849957433063537" - }, - "_npmUser": { - "name": "gaearon", - "email": "dan.abramov@gmail.com" - }, - "_npmVersion": "4.1.2", "_phantomChildren": {}, "_requested": { + "type": "tag", + "registry": true, "raw": "prop-types", - "scope": null, - "escapedName": "prop-types", "name": "prop-types", + "escapedName": "prop-types", "rawSpec": "", - "spec": "latest", - "type": "tag" + "saveSpec": null, + "fetchSpec": "latest" }, "_requiredBy": [ "#USER", + "/", "/react", "/react-dom" ], - "_resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.5.10.tgz", - "_shasum": "2797dfc3126182e3a95e3dfbb2e893ddd7456154", - "_shrinkwrap": null, + "_resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.6.1.tgz", + "_shasum": "36644453564255ddda391191fb3a125cbdf654ca", "_spec": "prop-types", "_where": "/Users/Michal/Desktop/dev/react-slider", "browserify": { @@ -53,12 +31,15 @@ ] }, "bugs": { - "url": "https://github.com/reactjs/prop-types/issues" + "url": "https://github.com/facebook/prop-types/issues" }, + "bundleDependencies": false, "dependencies": { - "fbjs": "^0.8.9", - "loose-envify": "^1.3.1" + "fbjs": "^0.8.16", + "loose-envify": "^1.3.1", + "object-assign": "^4.1.1" }, + "deprecated": false, "description": "Runtime type checking for React props and similar objects.", "devDependencies": { "babel-jest": "^19.0.0", @@ -71,14 +52,8 @@ "uglifyify": "^3.0.4", "uglifyjs": "^2.4.10" }, - "directories": {}, - "dist": { - "shasum": "2797dfc3126182e3a95e3dfbb2e893ddd7456154", - "tarball": "https://registry.npmjs.org/prop-types/-/prop-types-15.5.10.tgz" - }, "files": [ "LICENSE", - "PATENTS", "README.md", "checkPropTypes.js", "factory.js", @@ -89,26 +64,16 @@ "prop-types.min.js", "lib" ], - "gitHead": "1cc445d64db9143a4c9c5505c6c3657e2f68bfc6", "homepage": "https://facebook.github.io/react/", "keywords": [ "react" ], - "license": "BSD-3-Clause", + "license": "MIT", "main": "index.js", - "maintainers": [ - { - "name": "gaearon", - "email": "dan.abramov@gmail.com" - } - ], "name": "prop-types", - "optionalDependencies": {}, - "readme": "# prop-types\n\nRuntime type checking for React props and similar objects.\n\nYou can use prop-types to document the intended types of properties passed to\ncomponents. React (and potentially other libraries—see the checkPropTypes()\nreference below) will check props passed to your components against those\ndefinitions, and warn in development if they don’t match.\n\n## Installation\n\n```shell\nnpm install --save prop-types\n```\n\n## Importing\n\n```js\nimport PropTypes from 'prop-types'; // ES6\nvar PropTypes = require('prop-types'); // ES5 with npm\n```\n\nIf you prefer a `\n\n\n\n```\n\n## Usage\n\nPropTypes was originally exposed as part of the React core module, and is\ncommonly used with React components.\nHere is an example of using PropTypes with a React component, which also\ndocuments the different validators provided:\n\n```jsx\nimport React from 'react';\nimport PropTypes from 'prop-types';\n\nclass MyComponent extends React.Component {\n render() {\n // ... do things with the props\n }\n}\n\nMyComponent.propTypes = {\n // You can declare that a prop is a specific JS primitive. By default, these\n // are all optional.\n optionalArray: PropTypes.array,\n optionalBool: PropTypes.bool,\n optionalFunc: PropTypes.func,\n optionalNumber: PropTypes.number,\n optionalObject: PropTypes.object,\n optionalString: PropTypes.string,\n optionalSymbol: PropTypes.symbol,\n\n // Anything that can be rendered: numbers, strings, elements or an array\n // (or fragment) containing these types.\n optionalNode: PropTypes.node,\n\n // A React element.\n optionalElement: PropTypes.element,\n\n // You can also declare that a prop is an instance of a class. This uses\n // JS's instanceof operator.\n optionalMessage: PropTypes.instanceOf(Message),\n\n // You can ensure that your prop is limited to specific values by treating\n // it as an enum.\n optionalEnum: PropTypes.oneOf(['News', 'Photos']),\n\n // An object that could be one of many types\n optionalUnion: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.number,\n PropTypes.instanceOf(Message)\n ]),\n\n // An array of a certain type\n optionalArrayOf: PropTypes.arrayOf(PropTypes.number),\n\n // An object with property values of a certain type\n optionalObjectOf: PropTypes.objectOf(PropTypes.number),\n\n // An object taking on a particular shape\n optionalObjectWithShape: PropTypes.shape({\n color: PropTypes.string,\n fontSize: PropTypes.number\n }),\n\n // You can chain any of the above with `isRequired` to make sure a warning\n // is shown if the prop isn't provided.\n requiredFunc: PropTypes.func.isRequired,\n\n // A value of any data type\n requiredAny: PropTypes.any.isRequired,\n\n // You can also specify a custom validator. It should return an Error\n // object if the validation fails. Don't `console.warn` or throw, as this\n // won't work inside `oneOfType`.\n customProp: function(props, propName, componentName) {\n if (!/matchme/.test(props[propName])) {\n return new Error(\n 'Invalid prop `' + propName + '` supplied to' +\n ' `' + componentName + '`. Validation failed.'\n );\n }\n },\n\n // You can also supply a custom validator to `arrayOf` and `objectOf`.\n // It should return an Error object if the validation fails. The validator\n // will be called for each key in the array or object. The first two\n // arguments of the validator are the array or object itself, and the\n // current item's key.\n customArrayProp: PropTypes.arrayOf(function(propValue, key, componentName, location, propFullName) {\n if (!/matchme/.test(propValue[key])) {\n return new Error(\n 'Invalid prop `' + propFullName + '` supplied to' +\n ' `' + componentName + '`. Validation failed.'\n );\n }\n })\n};\n```\n\nRefer to the [React documentation](https://facebook.github.io/react/docs/typechecking-with-proptypes.html) for more information.\n\n## Migrating from React.PropTypes\n\nCheck out [Migrating from React.PropTypes](https://facebook.github.io/react/blog/2017/04/07/react-v15.5.0.html#migrating-from-react.proptypes) for details on how to migrate to `prop-types` from `React.PropTypes`.\n\nThere are also important notes below.\n\n## How to Depend on This Package?\n\nFor apps, we recommend putting it in `dependencies` with a caret range.\nFor example:\n\n```js\n \"dependencies\": {\n \"prop-types\": \"^15.5.7\" \n }\n```\n\nFor libraries, we *also* recommend leaving it in `dependencies`:\n\n```js\n \"dependencies\": {\n \"prop-types\": \"^15.5.7\" \n },\n \"peerDependencies\": {\n \"react\": \"^15.5.0\" \n }\n```\n\n**Note:** there are known issues in versions before 15.5.7 so we recommend using it as the minimal version.\n\nMake sure that the version range uses a caret (`^`) and thus is broad enough for npm to efficiently deduplicate packages.\n\nFor UMD bundles of your comoponents, make sure you **don’t** include `PropTypes` in the build. Usually this is done by marking it as an external (the specifics depend on your bundler), just like you do with React.\n\n## Compatibility\n\n### React 0.14\n\nThis package is compatible with **React 0.14.9**. Compared to 0.14.8 (which was released a year ago), there are no other changes in 0.14.9, so it should be a painless upgrade.\n\n```shell\n# ATTENTION: Only run this if you still use React 0.14!\nnpm install --save react@^0.14.9 react-dom@^0.14.9\n```\n\n### React 15+\n\nThis package is compatible with **React 15.3.0** and higher.\n\n```\nnpm install --save react@^15.3.0 react-dom@^15.3.0\n```\n\n### What happens on other React versions?\n\nIt outputs warnings with the message below even though the developer doesn’t do anything wrong. Unfortunately there is no solution for this other than updating React to either 15.3.0 or higher, or 0.14.9 if you’re using React 0.14.\n\n## Difference from `React.PropTypes`: Don’t Call Validator Functions\n\nFirst of all, **which version of React are you using**? You might be seeing this message because a component library has updated to use `prop-types` package, but your version of React is incompatible with it. See the [above section](#compatibility) for more details.\n\nAre you using either React 0.14.9 or a version higher than React 15.3.0? Read on.\n\nWhen you migrate components to use the standalone `prop-types`, **all validator functions will start throwing an error if you call them directly**. This makes sure that nobody relies on them in production code, and it is safe to strip their implementations to optimize the bundle size.\n\nCode like this is still fine:\n\n```js\nMyComponent.propTypes = {\n myProp: PropTypes.bool\n};\n```\n\nHowever, code like this will not work with the `prop-types` package:\n\n```js\n// Will not work with `prop-types` package!\nvar errorOrNull = PropTypes.bool(42, 'myProp', 'MyComponent', 'prop');\n```\n\nIt will throw an error:\n\n```\nCalling PropTypes validators directly is not supported by the `prop-types` package.\nUse PropTypes.checkPropTypes() to call them.\n```\n\n(If you see **a warning** rather than an error with this message, please check the [above section about compatibility](#compatibility).)\n\nThis is new behavior, and you will only encounter it when you migrate from `React.PropTypes` to the `prop-types` package. For the vast majority of components, this doesn’t matter, and if you didn’t see [this warning](https://facebook.github.io/react/warnings/dont-call-proptypes.html) in your components, your code is safe to migrate. This is not a breaking change in React because you are only opting into this change for a component by explicitly changing your imports to use `prop-types`. If you temporarily need the old behavior, you can keep using `React.PropTypes` until React 16.\n\n**If you absolutely need to trigger the validation manually**, call `PropTypes.checkPropTypes()`. Unlike the validators themselves, this function is safe to call in production, as it will be replaced by an empty function:\n\n```js\n// Works with standalone PropTypes\nPropTypes.checkPropTypes(MyComponent.propTypes, props, 'prop', 'MyComponent');\n```\nSee below for more info.\n\n**You might also see this error** if you’re calling a `PropTypes` validator from your own custom `PropTypes` validator. In this case, the fix is to make sure that you are passing *all* of the arguments to the inner function. There is a more in-depth explanation of how to fix it [on this page](https://facebook.github.io/react/warnings/dont-call-proptypes.html#fixing-the-false-positive-in-third-party-proptypes). Alternatively, you can temporarily keep using `React.PropTypes` until React 16, as it would still only warn in this case.\n\nIf you use a bundler like Browserify or Webpack, don’t forget to [follow these instructions](https://facebook.github.io/react/docs/installation.html#development-and-production-versions) to correctly bundle your application in development or production mode. Otherwise you’ll ship unnecessary code to your users.\n\n## PropTypes.checkPropTypes\n\nReact will automatically check the propTypes you set on the component, but if\nyou are using PropTypes without React then you may want to manually call\n`PropTypes.checkPropTypes`, like so:\n\n```js\nconst myPropTypes = {\n name: PropTypes.string,\n age: PropTypes. number,\n // ... define your prop validations\n};\n\nconst props = {\n name: 'hello', // is valid\n age: 'world', // not valid\n};\n\n// Let's say your component is called 'MyComponent'\n\n// Works with standalone PropTypes\nPropTypes.checkPropTypes(myPropTypes, props, 'prop', 'MyComponent');\n// This will warn as follows:\n// Warning: Failed prop type: Invalid prop `age` of type `string` supplied to\n// `MyComponent`, expected `number`.\n```\n", - "readmeFilename": "README.md", "repository": { "type": "git", - "url": "git+https://github.com/reactjs/prop-types.git" + "url": "git+https://github.com/facebook/prop-types.git" }, "scripts": { "build": "yarn umd && yarn umd-min", @@ -117,5 +82,5 @@ "umd": "NODE_ENV=development browserify index.js -t envify --standalone PropTypes -o prop-types.js", "umd-min": "NODE_ENV=production browserify index.js -t envify -t uglifyify --standalone PropTypes -p bundle-collapser/plugin -o | uglifyjs --compress unused,dead_code -o prop-types.min.js" }, - "version": "15.5.10" + "version": "15.6.1" } diff --git a/node_modules/prop-types/prop-types.js b/node_modules/prop-types/prop-types.js index 148b65ea..82bfaed6 100644 --- a/node_modules/prop-types/prop-types.js +++ b/node_modules/prop-types/prop-types.js @@ -1,11 +1,9 @@ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.PropTypes = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - args[_key - 1] = arguments[_key]; - } + var printWarning = function printWarning(format) { + for (var _len = arguments.length, args = 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.error(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) {} - }; - - warning = function warning(condition, format) { - if (format === undefined) { - throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument'); - } + var argIndex = 0; + var message = 'Warning: ' + format.replace(/%s/g, function () { + return args[argIndex++]; + }); + if (typeof console !== 'undefined') { + console.error(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) {} + }; - if (format.indexOf('Failed Composite propType: ') === 0) { - return; // Ignore CompositeComponent proptype check. - } + warning = function warning(condition, format) { + if (format === undefined) { + throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument'); + } - if (!condition) { - for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) { - args[_key2 - 2] = arguments[_key2]; - } + if (format.indexOf('Failed Composite propType: ') === 0) { + return; // Ignore CompositeComponent proptype check. + } - printWarning.apply(undefined, [format].concat(args)); + if (!condition) { + for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) { + args[_key2 - 2] = arguments[_key2]; } - }; - })(); + + printWarning.apply(undefined, [format].concat(args)); + } + }; } module.exports = warning; -},{"./emptyFunction":6}]},{},[4])(4) +},{"./emptyFunction":6}],9:[function(require,module,exports){ +/* +object-assign +(c) Sindre Sorhus +@license MIT +*/ + +'use strict'; +/* eslint-disable no-unused-vars */ +var getOwnPropertySymbols = Object.getOwnPropertySymbols; +var hasOwnProperty = Object.prototype.hasOwnProperty; +var propIsEnumerable = Object.prototype.propertyIsEnumerable; + +function toObject(val) { + if (val === null || val === undefined) { + throw new TypeError('Object.assign cannot be called with null or undefined'); + } + + return Object(val); +} + +function shouldUseNative() { + try { + if (!Object.assign) { + return false; + } + + // Detect buggy property enumeration order in older V8 versions. + + // https://bugs.chromium.org/p/v8/issues/detail?id=4118 + var test1 = new String('abc'); // eslint-disable-line no-new-wrappers + test1[5] = 'de'; + if (Object.getOwnPropertyNames(test1)[0] === '5') { + return false; + } + + // https://bugs.chromium.org/p/v8/issues/detail?id=3056 + var test2 = {}; + for (var i = 0; i < 10; i++) { + test2['_' + String.fromCharCode(i)] = i; + } + var order2 = Object.getOwnPropertyNames(test2).map(function (n) { + return test2[n]; + }); + if (order2.join('') !== '0123456789') { + return false; + } + + // https://bugs.chromium.org/p/v8/issues/detail?id=3056 + var test3 = {}; + 'abcdefghijklmnopqrst'.split('').forEach(function (letter) { + test3[letter] = letter; + }); + if (Object.keys(Object.assign({}, test3)).join('') !== + 'abcdefghijklmnopqrst') { + return false; + } + + return true; + } catch (err) { + // We don't expect any of the above to throw, but better to be safe. + return false; + } +} + +module.exports = shouldUseNative() ? Object.assign : function (target, source) { + var from; + var to = toObject(target); + var symbols; + + for (var s = 1; s < arguments.length; s++) { + from = Object(arguments[s]); + + for (var key in from) { + if (hasOwnProperty.call(from, key)) { + to[key] = from[key]; + } + } + + if (getOwnPropertySymbols) { + symbols = getOwnPropertySymbols(from); + for (var i = 0; i < symbols.length; i++) { + if (propIsEnumerable.call(from, symbols[i])) { + to[symbols[i]] = from[symbols[i]]; + } + } + } + } + + return to; +}; + +},{}]},{},[4])(4) }); \ No newline at end of file diff --git a/node_modules/prop-types/prop-types.min.js b/node_modules/prop-types/prop-types.min.js index 332bf898..71af27b7 100644 --- a/node_modules/prop-types/prop-types.min.js +++ b/node_modules/prop-types/prop-types.min.js @@ -1 +1 @@ -!function(f){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=f();else if("function"==typeof define&&define.amd)define([],f);else{var g;g="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,g.PropTypes=f()}}(function(){return function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a="function"==typeof require&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}for(var i="function"==typeof require&&require,o=0;o 2 && (name[0] === 'o' || name[0] === 'O') && (name[1] === 'n' || name[1] === 'N')) { + return false; + } + if (value === null) { + return true; + } + switch (typeof value) { + case 'boolean': + return shouldAttributeAcceptBooleanValue(name); + case 'undefined': + case 'number': + case 'string': + case 'object': + return true; + default: + // function, symbol + return false; + } +} + +function getPropertyInfo(name) { + return properties.hasOwnProperty(name) ? properties[name] : null; +} + +function shouldAttributeAcceptBooleanValue(name) { + if (isReservedProp(name)) { + return true; + } + var propertyInfo = getPropertyInfo(name); + if (propertyInfo) { + return propertyInfo.hasBooleanValue || propertyInfo.hasStringBooleanValue || propertyInfo.hasOverloadedBooleanValue; + } + var prefix = name.toLowerCase().slice(0, 5); + return prefix === 'data-' || prefix === 'aria-'; +} + +/** + * Checks to see if a property name is within the list of properties + * reserved for internal React operations. These properties should + * not be set on an HTML element. + * + * @private + * @param {string} name + * @return {boolean} If the name is within reserved props + */ +function isReservedProp(name) { + return RESERVED_PROPS.hasOwnProperty(name); +} + +var injection = DOMPropertyInjection; + +var MUST_USE_PROPERTY = injection.MUST_USE_PROPERTY; +var HAS_BOOLEAN_VALUE = injection.HAS_BOOLEAN_VALUE; +var HAS_NUMERIC_VALUE = injection.HAS_NUMERIC_VALUE; +var HAS_POSITIVE_NUMERIC_VALUE = injection.HAS_POSITIVE_NUMERIC_VALUE; +var HAS_OVERLOADED_BOOLEAN_VALUE = injection.HAS_OVERLOADED_BOOLEAN_VALUE; +var HAS_STRING_BOOLEAN_VALUE = injection.HAS_STRING_BOOLEAN_VALUE; + +var HTMLDOMPropertyConfig = { + // When adding attributes to this list, be sure to also add them to + // the `possibleStandardNames` module to ensure casing and incorrect + // name warnings. + Properties: { + allowFullScreen: HAS_BOOLEAN_VALUE, + // specifies target context for links with `preload` type + async: HAS_BOOLEAN_VALUE, + // Note: there is a special case that prevents it from being written to the DOM + // on the client side because the browsers are inconsistent. Instead we call focus(). + autoFocus: HAS_BOOLEAN_VALUE, + autoPlay: HAS_BOOLEAN_VALUE, + capture: HAS_OVERLOADED_BOOLEAN_VALUE, + checked: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE, + cols: HAS_POSITIVE_NUMERIC_VALUE, + contentEditable: HAS_STRING_BOOLEAN_VALUE, + controls: HAS_BOOLEAN_VALUE, + 'default': HAS_BOOLEAN_VALUE, + defer: HAS_BOOLEAN_VALUE, + disabled: HAS_BOOLEAN_VALUE, + download: HAS_OVERLOADED_BOOLEAN_VALUE, + draggable: HAS_STRING_BOOLEAN_VALUE, + formNoValidate: HAS_BOOLEAN_VALUE, + hidden: HAS_BOOLEAN_VALUE, + loop: HAS_BOOLEAN_VALUE, + // Caution; `option.selected` is not updated if `select.multiple` is + // disabled with `removeAttribute`. + multiple: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE, + muted: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE, + noValidate: HAS_BOOLEAN_VALUE, + open: HAS_BOOLEAN_VALUE, + playsInline: HAS_BOOLEAN_VALUE, + readOnly: HAS_BOOLEAN_VALUE, + required: HAS_BOOLEAN_VALUE, + reversed: HAS_BOOLEAN_VALUE, + rows: HAS_POSITIVE_NUMERIC_VALUE, + rowSpan: HAS_NUMERIC_VALUE, + scoped: HAS_BOOLEAN_VALUE, + seamless: HAS_BOOLEAN_VALUE, + selected: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE, + size: HAS_POSITIVE_NUMERIC_VALUE, + start: HAS_NUMERIC_VALUE, + // support for projecting regular DOM Elements via V1 named slots ( shadow dom ) + span: HAS_POSITIVE_NUMERIC_VALUE, + spellCheck: HAS_STRING_BOOLEAN_VALUE, + // Style must be explicitly set in the attribute list. React components + // expect a style object + style: 0, + // Keep it in the whitelist because it is case-sensitive for SVG. + tabIndex: 0, + // itemScope is for for Microdata support. + // See http://schema.org/docs/gs.html + itemScope: HAS_BOOLEAN_VALUE, + // These attributes must stay in the white-list because they have + // different attribute names (see DOMAttributeNames below) + acceptCharset: 0, + className: 0, + htmlFor: 0, + httpEquiv: 0, + // Attributes with mutation methods must be specified in the whitelist + // Set the string boolean flag to allow the behavior + value: HAS_STRING_BOOLEAN_VALUE + }, + DOMAttributeNames: { + acceptCharset: 'accept-charset', + className: 'class', + htmlFor: 'for', + httpEquiv: 'http-equiv' + }, + DOMMutationMethods: { + value: function (node, value) { + if (value == null) { + return node.removeAttribute('value'); + } + + // Number inputs get special treatment due to some edge cases in + // Chrome. Let everything else assign the value attribute as normal. + // https://github.com/facebook/react/issues/7253#issuecomment-236074326 + if (node.type !== 'number' || node.hasAttribute('value') === false) { + node.setAttribute('value', '' + value); + } else if (node.validity && !node.validity.badInput && node.ownerDocument.activeElement !== node) { + // Don't assign an attribute if validation reports bad + // input. Chrome will clear the value. Additionally, don't + // operate on inputs that have focus, otherwise Chrome might + // strip off trailing decimal places and cause the user's + // cursor position to jump to the beginning of the input. + // + // In ReactDOMInput, we have an onBlur event that will trigger + // this function again when focus is lost. + node.setAttribute('value', '' + value); + } + } + } +}; + +var HAS_STRING_BOOLEAN_VALUE$1 = injection.HAS_STRING_BOOLEAN_VALUE; + + +var NS = { + xlink: 'http://www.w3.org/1999/xlink', + xml: 'http://www.w3.org/XML/1998/namespace' +}; + +/** + * This is a list of all SVG attributes that need special casing, + * namespacing, or boolean value assignment. + * + * When adding attributes to this list, be sure to also add them to + * the `possibleStandardNames` module to ensure casing and incorrect + * name warnings. + * + * SVG Attributes List: + * https://www.w3.org/TR/SVG/attindex.html + * SMIL Spec: + * https://www.w3.org/TR/smil + */ +var ATTRS = ['accent-height', 'alignment-baseline', 'arabic-form', 'baseline-shift', 'cap-height', 'clip-path', 'clip-rule', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'dominant-baseline', 'enable-background', 'fill-opacity', 'fill-rule', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'glyph-name', 'glyph-orientation-horizontal', 'glyph-orientation-vertical', 'horiz-adv-x', 'horiz-origin-x', 'image-rendering', 'letter-spacing', 'lighting-color', 'marker-end', 'marker-mid', 'marker-start', 'overline-position', 'overline-thickness', 'paint-order', 'panose-1', 'pointer-events', 'rendering-intent', 'shape-rendering', 'stop-color', 'stop-opacity', 'strikethrough-position', 'strikethrough-thickness', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke-width', 'text-anchor', 'text-decoration', 'text-rendering', 'underline-position', 'underline-thickness', 'unicode-bidi', 'unicode-range', 'units-per-em', 'v-alphabetic', 'v-hanging', 'v-ideographic', 'v-mathematical', 'vector-effect', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'word-spacing', 'writing-mode', 'x-height', 'xlink:actuate', 'xlink:arcrole', 'xlink:href', 'xlink:role', 'xlink:show', 'xlink:title', 'xlink:type', 'xml:base', 'xmlns:xlink', 'xml:lang', 'xml:space']; + +var SVGDOMPropertyConfig = { + Properties: { + autoReverse: HAS_STRING_BOOLEAN_VALUE$1, + externalResourcesRequired: HAS_STRING_BOOLEAN_VALUE$1, + preserveAlpha: HAS_STRING_BOOLEAN_VALUE$1 + }, + DOMAttributeNames: { + autoReverse: 'autoReverse', + externalResourcesRequired: 'externalResourcesRequired', + preserveAlpha: 'preserveAlpha' + }, + DOMAttributeNamespaces: { + xlinkActuate: NS.xlink, + xlinkArcrole: NS.xlink, + xlinkHref: NS.xlink, + xlinkRole: NS.xlink, + xlinkShow: NS.xlink, + xlinkTitle: NS.xlink, + xlinkType: NS.xlink, + xmlBase: NS.xml, + xmlLang: NS.xml, + xmlSpace: NS.xml + } +}; + +var CAMELIZE = /[\-\:]([a-z])/g; +var capitalize = function (token) { + return token[1].toUpperCase(); +}; + +ATTRS.forEach(function (original) { + var reactName = original.replace(CAMELIZE, capitalize); + + SVGDOMPropertyConfig.Properties[reactName] = 0; + SVGDOMPropertyConfig.DOMAttributeNames[reactName] = original; +}); + +injection.injectDOMPropertyConfig(HTMLDOMPropertyConfig); +injection.injectDOMPropertyConfig(SVGDOMPropertyConfig); + +// TODO: this is special because it gets imported during build. + +var ReactVersion = '16.2.0'; + +var describeComponentFrame = function (name, source, ownerName) { + return '\n in ' + (name || 'Unknown') + (source ? ' (at ' + source.fileName.replace(/^.*[\\\/]/, '') + ':' + source.lineNumber + ')' : ownerName ? ' (created by ' + ownerName + ')' : ''); +}; + +var ReactInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; + +var ReactCurrentOwner = ReactInternals.ReactCurrentOwner; +var ReactDebugCurrentFrame = ReactInternals.ReactDebugCurrentFrame; + +// 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_FRAGMENT_TYPE = hasSymbol ? Symbol['for']('react.fragment') : 0xeacb; + +// code copied and modified from escape-html +/** + * Module variables. + * @private + */ + +var matchHtmlRegExp = /["'&<>]/; + +/** + * Escapes special characters and HTML entities in a given html string. + * + * @param {string} string HTML string to escape for later insertion + * @return {string} + * @public + */ + +function escapeHtml(string) { + var str = '' + string; + var match = matchHtmlRegExp.exec(str); + + if (!match) { + return str; + } + + var escape; + var html = ''; + var index = 0; + var lastIndex = 0; + + for (index = match.index; index < str.length; index++) { + switch (str.charCodeAt(index)) { + case 34: + // " + escape = '"'; + break; + case 38: + // & + escape = '&'; + break; + case 39: + // ' + escape = '''; // modified from escape-html; used to be ''' + break; + case 60: + // < + escape = '<'; + break; + case 62: + // > + escape = '>'; + break; + default: + continue; + } + + if (lastIndex !== index) { + html += str.substring(lastIndex, index); + } + + lastIndex = index + 1; + html += escape; + } + + return lastIndex !== index ? html + str.substring(lastIndex, index) : html; +} +// end code copied and modified from escape-html + +/** + * Escapes text to prevent scripting attacks. + * + * @param {*} text Text value to escape. + * @return {string} An escaped string. + */ +function escapeTextForBrowser(text) { + if (typeof text === 'boolean' || typeof text === 'number') { + // this shortcircuit helps perf for types that we know will never have + // special characters, especially given that this function is used often + // for numeric dom ids. + return '' + text; + } + return escapeHtml(text); +} + +/** + * Escapes attribute value to prevent scripting attacks. + * + * @param {*} value Value to escape. + * @return {string} An escaped string. + */ +function quoteAttributeValueForBrowser(value) { + return '"' + escapeTextForBrowser(value) + '"'; +} + +// isAttributeNameSafe() is currently duplicated in DOMPropertyOperations. +// TODO: Find a better place for this. +var VALID_ATTRIBUTE_NAME_REGEX = new RegExp('^[' + ATTRIBUTE_NAME_START_CHAR + '][' + ATTRIBUTE_NAME_CHAR + ']*$'); +var illegalAttributeNameCache = {}; +var validatedAttributeNameCache = {}; +function isAttributeNameSafe(attributeName) { + if (validatedAttributeNameCache.hasOwnProperty(attributeName)) { + return true; + } + if (illegalAttributeNameCache.hasOwnProperty(attributeName)) { + return false; + } + if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) { + validatedAttributeNameCache[attributeName] = true; + return true; + } + illegalAttributeNameCache[attributeName] = true; + { + warning(false, 'Invalid attribute name: `%s`', attributeName); + } + return false; +} + +// shouldIgnoreValue() is currently duplicated in DOMPropertyOperations. +// TODO: Find a better place for this. +function shouldIgnoreValue(propertyInfo, value) { + return value == null || propertyInfo.hasBooleanValue && !value || propertyInfo.hasNumericValue && isNaN(value) || propertyInfo.hasPositiveNumericValue && value < 1 || propertyInfo.hasOverloadedBooleanValue && value === false; +} + +/** + * Operations for dealing with DOM properties. + */ + +/** + * Creates markup for the ID property. + * + * @param {string} id Unescaped ID. + * @return {string} Markup string. + */ + + +function createMarkupForRoot() { + return ROOT_ATTRIBUTE_NAME + '=""'; +} + +/** + * Creates markup for a property. + * + * @param {string} name + * @param {*} value + * @return {?string} Markup string, or null if the property was invalid. + */ +function createMarkupForProperty(name, value) { + var propertyInfo = getPropertyInfo(name); + if (propertyInfo) { + if (shouldIgnoreValue(propertyInfo, value)) { + return ''; + } + var attributeName = propertyInfo.attributeName; + if (propertyInfo.hasBooleanValue || propertyInfo.hasOverloadedBooleanValue && value === true) { + return attributeName + '=""'; + } else if (typeof value !== 'boolean' || shouldAttributeAcceptBooleanValue(name)) { + return attributeName + '=' + quoteAttributeValueForBrowser(value); + } + } else if (shouldSetAttribute(name, value)) { + if (value == null) { + return ''; + } + return name + '=' + quoteAttributeValueForBrowser(value); + } + return null; +} + +/** + * Creates markup for a custom property. + * + * @param {string} name + * @param {*} value + * @return {string} Markup string, or empty string if the property was invalid. + */ +function createMarkupForCustomAttribute(name, value) { + if (!isAttributeNameSafe(name) || value == null) { + return ''; + } + return name + '=' + quoteAttributeValueForBrowser(value); +} + +var HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml'; +var MATH_NAMESPACE = 'http://www.w3.org/1998/Math/MathML'; +var SVG_NAMESPACE = 'http://www.w3.org/2000/svg'; + +var Namespaces = { + html: HTML_NAMESPACE, + mathml: MATH_NAMESPACE, + svg: SVG_NAMESPACE +}; + +// Assumes there is no parent namespace. +function getIntrinsicNamespace(type) { + switch (type) { + case 'svg': + return SVG_NAMESPACE; + case 'math': + return MATH_NAMESPACE; + default: + return HTML_NAMESPACE; + } +} + +function getChildNamespace(parentNamespace, type) { + if (parentNamespace == null || parentNamespace === HTML_NAMESPACE) { + // No (or default) parent namespace: potential entry point. + return getIntrinsicNamespace(type); + } + if (parentNamespace === SVG_NAMESPACE && type === 'foreignObject') { + // We're leaving SVG. + return HTML_NAMESPACE; + } + // By default, pass namespace below. + return parentNamespace; +} + +var ReactControlledValuePropTypes = { + checkPropTypes: null +}; + +{ + var hasReadOnlyValue = { + button: true, + checkbox: true, + image: true, + hidden: true, + radio: true, + reset: true, + submit: true + }; + + var propTypes = { + value: function (props, propName, componentName) { + if (!props[propName] || hasReadOnlyValue[props.type] || props.onChange || props.readOnly || props.disabled) { + return null; + } + return new Error('You provided a `value` prop to a form field without an ' + '`onChange` handler. This will render a read-only field. If ' + 'the field should be mutable use `defaultValue`. Otherwise, ' + 'set either `onChange` or `readOnly`.'); + }, + checked: function (props, propName, componentName) { + if (!props[propName] || props.onChange || props.readOnly || props.disabled) { + return null; + } + return new Error('You provided a `checked` prop to a form field without an ' + '`onChange` handler. This will render a read-only field. If ' + 'the field should be mutable use `defaultChecked`. Otherwise, ' + 'set either `onChange` or `readOnly`.'); + } + }; + + /** + * Provide a linked `value` attribute for controlled forms. You should not use + * this outside of the ReactDOM controlled form components. + */ + ReactControlledValuePropTypes.checkPropTypes = function (tagName, props, getStack) { + checkPropTypes(propTypes, props, 'prop', tagName, getStack); + }; +} + +// For HTML, certain tags should omit their close tag. We keep a whitelist for +// those special-case tags. + +var omittedCloseTags = { + area: true, + base: true, + br: true, + col: true, + embed: true, + hr: true, + img: true, + input: true, + keygen: true, + link: true, + meta: true, + param: true, + source: true, + track: true, + wbr: true +}; + +// For HTML, certain tags cannot have children. This has the same purpose as +// `omittedCloseTags` except that `menuitem` should still have its closing tag. + +var voidElementTags = _assign({ + menuitem: true +}, omittedCloseTags); + +var HTML = '__html'; + +function assertValidProps(tag, props, getStack) { + if (!props) { + return; + } + // Note the use of `==` which checks for null or undefined. + if (voidElementTags[tag]) { + !(props.children == null && props.dangerouslySetInnerHTML == null) ? invariant(false, '%s is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.%s', tag, getStack()) : void 0; + } + if (props.dangerouslySetInnerHTML != null) { + !(props.children == null) ? invariant(false, 'Can only set one of `children` or `props.dangerouslySetInnerHTML`.') : void 0; + !(typeof props.dangerouslySetInnerHTML === 'object' && HTML in props.dangerouslySetInnerHTML) ? invariant(false, '`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://fb.me/react-invariant-dangerously-set-inner-html for more information.') : void 0; + } + { + warning(props.suppressContentEditableWarning || !props.contentEditable || props.children == null, 'A component is `contentEditable` and contains `children` managed by ' + 'React. It is now your responsibility to guarantee that none of ' + 'those nodes are unexpectedly modified or duplicated. This is ' + 'probably not intentional.%s', getStack()); + } + !(props.style == null || typeof props.style === 'object') ? invariant(false, 'The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + \'em\'}} when using JSX.%s', getStack()) : void 0; +} + +/** + * CSS properties which accept numbers but are not in units of "px". + */ +var isUnitlessNumber = { + animationIterationCount: true, + borderImageOutset: true, + borderImageSlice: true, + borderImageWidth: true, + boxFlex: true, + boxFlexGroup: true, + boxOrdinalGroup: true, + columnCount: true, + columns: true, + flex: true, + flexGrow: true, + flexPositive: true, + flexShrink: true, + flexNegative: true, + flexOrder: true, + gridRow: true, + gridRowEnd: true, + gridRowSpan: true, + gridRowStart: true, + gridColumn: true, + gridColumnEnd: true, + gridColumnSpan: true, + gridColumnStart: true, + fontWeight: true, + lineClamp: true, + lineHeight: true, + opacity: true, + order: true, + orphans: true, + tabSize: true, + widows: true, + zIndex: true, + zoom: true, + + // SVG-related properties + fillOpacity: true, + floodOpacity: true, + stopOpacity: true, + strokeDasharray: true, + strokeDashoffset: true, + strokeMiterlimit: true, + strokeOpacity: true, + strokeWidth: true +}; + +/** + * @param {string} prefix vendor-specific prefix, eg: Webkit + * @param {string} key style name, eg: transitionDuration + * @return {string} style name prefixed with `prefix`, properly camelCased, eg: + * WebkitTransitionDuration + */ +function prefixKey(prefix, key) { + return prefix + key.charAt(0).toUpperCase() + key.substring(1); +} + +/** + * Support style names that may come passed in prefixed by adding permutations + * of vendor prefixes. + */ +var prefixes = ['Webkit', 'ms', 'Moz', 'O']; + +// Using Object.keys here, or else the vanilla for-in loop makes IE8 go into an +// infinite loop, because it iterates over the newly added props too. +Object.keys(isUnitlessNumber).forEach(function (prop) { + prefixes.forEach(function (prefix) { + isUnitlessNumber[prefixKey(prefix, prop)] = isUnitlessNumber[prop]; + }); +}); + +/** + * Convert a value into the proper css writable value. The style name `name` + * should be logical (no hyphens), as specified + * in `CSSProperty.isUnitlessNumber`. + * + * @param {string} name CSS property name such as `topMargin`. + * @param {*} value CSS property value such as `10px`. + * @return {string} Normalized style value with dimensions applied. + */ +function dangerousStyleValue(name, value, isCustomProperty) { + // Note that we've removed escapeTextForBrowser() calls here since the + // whole string will be escaped when the attribute is injected into + // the markup. If you provide unsafe user data here they can inject + // arbitrary CSS which may be problematic (I couldn't repro this): + // https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet + // http://www.thespanner.co.uk/2007/11/26/ultimate-xss-css-injection/ + // This is not an XSS hole but instead a potential CSS injection issue + // which has lead to a greater discussion about how we're going to + // trust URLs moving forward. See #2115901 + + var isEmpty = value == null || typeof value === 'boolean' || value === ''; + if (isEmpty) { + return ''; + } + + if (!isCustomProperty && typeof value === 'number' && value !== 0 && !(isUnitlessNumber.hasOwnProperty(name) && isUnitlessNumber[name])) { + return value + 'px'; // Presumes implicit 'px' suffix for unitless numbers + } + + return ('' + value).trim(); +} + +function isCustomComponent(tagName, props) { + if (tagName.indexOf('-') === -1) { + return typeof props.is === 'string'; + } + switch (tagName) { + // These are reserved SVG and MathML elements. + // We don't mind this whitelist too much because we expect it to never grow. + // The alternative is to track the namespace in a few places which is convoluted. + // https://w3c.github.io/webcomponents/spec/custom/#custom-elements-core-concepts + case 'annotation-xml': + case 'color-profile': + case 'font-face': + case 'font-face-src': + case 'font-face-uri': + case 'font-face-format': + case 'font-face-name': + case 'missing-glyph': + return false; + default: + return true; + } +} + +var warnValidStyle = emptyFunction; + +{ + // 'msTransform' is correct, but the other prefixes should be capitalized + var badVendoredStyleNamePattern = /^(?:webkit|moz|o)[A-Z]/; + + // style values shouldn't contain a semicolon + var badStyleValueWithSemicolonPattern = /;\s*$/; + + var warnedStyleNames = {}; + var warnedStyleValues = {}; + var warnedForNaNValue = false; + var warnedForInfinityValue = false; + + var warnHyphenatedStyleName = function (name, getStack) { + if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) { + return; + } + + warnedStyleNames[name] = true; + warning(false, 'Unsupported style property %s. Did you mean %s?%s', name, camelizeStyleName(name), getStack()); + }; + + var warnBadVendoredStyleName = function (name, getStack) { + if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) { + return; + } + + warnedStyleNames[name] = true; + warning(false, 'Unsupported vendor-prefixed style property %s. Did you mean %s?%s', name, name.charAt(0).toUpperCase() + name.slice(1), getStack()); + }; + + var warnStyleValueWithSemicolon = function (name, value, getStack) { + if (warnedStyleValues.hasOwnProperty(value) && warnedStyleValues[value]) { + return; + } + + warnedStyleValues[value] = true; + warning(false, "Style property values shouldn't contain a semicolon. " + 'Try "%s: %s" instead.%s', name, value.replace(badStyleValueWithSemicolonPattern, ''), getStack()); + }; + + var warnStyleValueIsNaN = function (name, value, getStack) { + if (warnedForNaNValue) { + return; + } + + warnedForNaNValue = true; + warning(false, '`NaN` is an invalid value for the `%s` css style property.%s', name, getStack()); + }; + + var warnStyleValueIsInfinity = function (name, value, getStack) { + if (warnedForInfinityValue) { + return; + } + + warnedForInfinityValue = true; + warning(false, '`Infinity` is an invalid value for the `%s` css style property.%s', name, getStack()); + }; + + warnValidStyle = function (name, value, getStack) { + if (name.indexOf('-') > -1) { + warnHyphenatedStyleName(name, getStack); + } else if (badVendoredStyleNamePattern.test(name)) { + warnBadVendoredStyleName(name, getStack); + } else if (badStyleValueWithSemicolonPattern.test(value)) { + warnStyleValueWithSemicolon(name, value, getStack); + } + + if (typeof value === 'number') { + if (isNaN(value)) { + warnStyleValueIsNaN(name, value, getStack); + } else if (!isFinite(value)) { + warnStyleValueIsInfinity(name, value, getStack); + } + } + }; +} + +var warnValidStyle$1 = warnValidStyle; + +var ariaProperties = { + 'aria-current': 0, // state + 'aria-details': 0, + 'aria-disabled': 0, // state + 'aria-hidden': 0, // state + 'aria-invalid': 0, // state + 'aria-keyshortcuts': 0, + 'aria-label': 0, + 'aria-roledescription': 0, + // Widget Attributes + 'aria-autocomplete': 0, + 'aria-checked': 0, + 'aria-expanded': 0, + 'aria-haspopup': 0, + 'aria-level': 0, + 'aria-modal': 0, + 'aria-multiline': 0, + 'aria-multiselectable': 0, + 'aria-orientation': 0, + 'aria-placeholder': 0, + 'aria-pressed': 0, + 'aria-readonly': 0, + 'aria-required': 0, + 'aria-selected': 0, + 'aria-sort': 0, + 'aria-valuemax': 0, + 'aria-valuemin': 0, + 'aria-valuenow': 0, + 'aria-valuetext': 0, + // Live Region Attributes + 'aria-atomic': 0, + 'aria-busy': 0, + 'aria-live': 0, + 'aria-relevant': 0, + // Drag-and-Drop Attributes + 'aria-dropeffect': 0, + 'aria-grabbed': 0, + // Relationship Attributes + 'aria-activedescendant': 0, + 'aria-colcount': 0, + 'aria-colindex': 0, + 'aria-colspan': 0, + 'aria-controls': 0, + 'aria-describedby': 0, + 'aria-errormessage': 0, + 'aria-flowto': 0, + 'aria-labelledby': 0, + 'aria-owns': 0, + 'aria-posinset': 0, + 'aria-rowcount': 0, + 'aria-rowindex': 0, + 'aria-rowspan': 0, + 'aria-setsize': 0 +}; + +var warnedProperties = {}; +var rARIA = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$'); +var rARIACamel = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$'); + +var hasOwnProperty = Object.prototype.hasOwnProperty; + +function getStackAddendum$1() { + var stack = ReactDebugCurrentFrame.getStackAddendum(); + return stack != null ? stack : ''; +} + +function validateProperty(tagName, name) { + if (hasOwnProperty.call(warnedProperties, name) && warnedProperties[name]) { + return true; + } + + if (rARIACamel.test(name)) { + var ariaName = 'aria-' + name.slice(4).toLowerCase(); + var correctName = ariaProperties.hasOwnProperty(ariaName) ? ariaName : null; + + // If this is an aria-* attribute, but is not listed in the known DOM + // DOM properties, then it is an invalid aria-* attribute. + if (correctName == null) { + warning(false, 'Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.%s', name, getStackAddendum$1()); + warnedProperties[name] = true; + return true; + } + // aria-* attributes should be lowercase; suggest the lowercase version. + if (name !== correctName) { + warning(false, 'Invalid ARIA attribute `%s`. Did you mean `%s`?%s', name, correctName, getStackAddendum$1()); + warnedProperties[name] = true; + return true; + } + } + + if (rARIA.test(name)) { + var lowerCasedName = name.toLowerCase(); + var standardName = ariaProperties.hasOwnProperty(lowerCasedName) ? lowerCasedName : null; + + // If this is an aria-* attribute, but is not listed in the known DOM + // DOM properties, then it is an invalid aria-* attribute. + if (standardName == null) { + warnedProperties[name] = true; + return false; + } + // aria-* attributes should be lowercase; suggest the lowercase version. + if (name !== standardName) { + warning(false, 'Unknown ARIA attribute `%s`. Did you mean `%s`?%s', name, standardName, getStackAddendum$1()); + warnedProperties[name] = true; + return true; + } + } + + return true; +} + +function warnInvalidARIAProps(type, props) { + var invalidProps = []; + + for (var key in props) { + var isValid = validateProperty(type, key); + if (!isValid) { + invalidProps.push(key); + } + } + + var unknownPropString = invalidProps.map(function (prop) { + return '`' + prop + '`'; + }).join(', '); + + if (invalidProps.length === 1) { + warning(false, 'Invalid aria prop %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop%s', unknownPropString, type, getStackAddendum$1()); + } else if (invalidProps.length > 1) { + warning(false, 'Invalid aria props %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop%s', unknownPropString, type, getStackAddendum$1()); + } +} + +function validateProperties(type, props) { + if (isCustomComponent(type, props)) { + return; + } + warnInvalidARIAProps(type, props); +} + +var didWarnValueNull = false; + +function getStackAddendum$2() { + var stack = ReactDebugCurrentFrame.getStackAddendum(); + return stack != null ? stack : ''; +} + +function validateProperties$1(type, props) { + if (type !== 'input' && type !== 'textarea' && type !== 'select') { + return; + } + + if (props != null && props.value === null && !didWarnValueNull) { + didWarnValueNull = true; + if (type === 'select' && props.multiple) { + warning(false, '`value` prop on `%s` should not be null. ' + 'Consider using an empty array when `multiple` is set to `true` ' + 'to clear the component or `undefined` for uncontrolled components.%s', type, getStackAddendum$2()); + } else { + warning(false, '`value` prop on `%s` should not be null. ' + 'Consider using an empty string to clear the component or `undefined` ' + 'for uncontrolled components.%s', type, getStackAddendum$2()); + } + } +} + +/** + * Registers plugins so that they can extract and dispatch events. + * + * @see {EventPluginHub} + */ + +/** + * Ordered list of injected plugins. + */ + + +/** + * Mapping from event name to dispatch config + */ + + +/** + * Mapping from registration name to plugin module + */ +var registrationNameModules = {}; + +/** + * Mapping from registration name to event name + */ + + +/** + * Mapping from lowercase registration names to the properly cased version, + * used to warn in the case of missing event handlers. Available + * only in true. + * @type {Object} + */ +var possibleRegistrationNames = {}; +// Trust the developer to only use possibleRegistrationNames in true + +/** + * Injects an ordering of plugins (by plugin name). This allows the ordering + * to be decoupled from injection of the actual plugins so that ordering is + * always deterministic regardless of packaging, on-the-fly injection, etc. + * + * @param {array} InjectedEventPluginOrder + * @internal + * @see {EventPluginHub.injection.injectEventPluginOrder} + */ + + +/** + * Injects plugins to be used by `EventPluginHub`. The plugin names must be + * in the ordering injected by `injectEventPluginOrder`. + * + * Plugins can be injected as part of page initialization or on-the-fly. + * + * @param {object} injectedNamesToPlugins Map from names to plugin modules. + * @internal + * @see {EventPluginHub.injection.injectEventPluginsByName} + */ + +// When adding attributes to the HTML or SVG whitelist, be sure to +// also add them to this module to ensure casing and incorrect name +// warnings. +var possibleStandardNames = { + // HTML + accept: 'accept', + acceptcharset: 'acceptCharset', + 'accept-charset': 'acceptCharset', + accesskey: 'accessKey', + action: 'action', + allowfullscreen: 'allowFullScreen', + alt: 'alt', + as: 'as', + async: 'async', + autocapitalize: 'autoCapitalize', + autocomplete: 'autoComplete', + autocorrect: 'autoCorrect', + autofocus: 'autoFocus', + autoplay: 'autoPlay', + autosave: 'autoSave', + capture: 'capture', + cellpadding: 'cellPadding', + cellspacing: 'cellSpacing', + challenge: 'challenge', + charset: 'charSet', + checked: 'checked', + children: 'children', + cite: 'cite', + 'class': 'className', + classid: 'classID', + classname: 'className', + cols: 'cols', + colspan: 'colSpan', + content: 'content', + contenteditable: 'contentEditable', + contextmenu: 'contextMenu', + controls: 'controls', + controlslist: 'controlsList', + coords: 'coords', + crossorigin: 'crossOrigin', + dangerouslysetinnerhtml: 'dangerouslySetInnerHTML', + data: 'data', + datetime: 'dateTime', + 'default': 'default', + defaultchecked: 'defaultChecked', + defaultvalue: 'defaultValue', + defer: 'defer', + dir: 'dir', + disabled: 'disabled', + download: 'download', + draggable: 'draggable', + enctype: 'encType', + 'for': 'htmlFor', + form: 'form', + formmethod: 'formMethod', + formaction: 'formAction', + formenctype: 'formEncType', + formnovalidate: 'formNoValidate', + formtarget: 'formTarget', + frameborder: 'frameBorder', + headers: 'headers', + height: 'height', + hidden: 'hidden', + high: 'high', + href: 'href', + hreflang: 'hrefLang', + htmlfor: 'htmlFor', + httpequiv: 'httpEquiv', + 'http-equiv': 'httpEquiv', + icon: 'icon', + id: 'id', + innerhtml: 'innerHTML', + inputmode: 'inputMode', + integrity: 'integrity', + is: 'is', + itemid: 'itemID', + itemprop: 'itemProp', + itemref: 'itemRef', + itemscope: 'itemScope', + itemtype: 'itemType', + keyparams: 'keyParams', + keytype: 'keyType', + kind: 'kind', + label: 'label', + lang: 'lang', + list: 'list', + loop: 'loop', + low: 'low', + manifest: 'manifest', + marginwidth: 'marginWidth', + marginheight: 'marginHeight', + max: 'max', + maxlength: 'maxLength', + media: 'media', + mediagroup: 'mediaGroup', + method: 'method', + min: 'min', + minlength: 'minLength', + multiple: 'multiple', + muted: 'muted', + name: 'name', + nonce: 'nonce', + novalidate: 'noValidate', + open: 'open', + optimum: 'optimum', + pattern: 'pattern', + placeholder: 'placeholder', + playsinline: 'playsInline', + poster: 'poster', + preload: 'preload', + profile: 'profile', + radiogroup: 'radioGroup', + readonly: 'readOnly', + referrerpolicy: 'referrerPolicy', + rel: 'rel', + required: 'required', + reversed: 'reversed', + role: 'role', + rows: 'rows', + rowspan: 'rowSpan', + sandbox: 'sandbox', + scope: 'scope', + scoped: 'scoped', + scrolling: 'scrolling', + seamless: 'seamless', + selected: 'selected', + shape: 'shape', + size: 'size', + sizes: 'sizes', + span: 'span', + spellcheck: 'spellCheck', + src: 'src', + srcdoc: 'srcDoc', + srclang: 'srcLang', + srcset: 'srcSet', + start: 'start', + step: 'step', + style: 'style', + summary: 'summary', + tabindex: 'tabIndex', + target: 'target', + title: 'title', + type: 'type', + usemap: 'useMap', + value: 'value', + width: 'width', + wmode: 'wmode', + wrap: 'wrap', + + // SVG + about: 'about', + accentheight: 'accentHeight', + 'accent-height': 'accentHeight', + accumulate: 'accumulate', + additive: 'additive', + alignmentbaseline: 'alignmentBaseline', + 'alignment-baseline': 'alignmentBaseline', + allowreorder: 'allowReorder', + alphabetic: 'alphabetic', + amplitude: 'amplitude', + arabicform: 'arabicForm', + 'arabic-form': 'arabicForm', + ascent: 'ascent', + attributename: 'attributeName', + attributetype: 'attributeType', + autoreverse: 'autoReverse', + azimuth: 'azimuth', + basefrequency: 'baseFrequency', + baselineshift: 'baselineShift', + 'baseline-shift': 'baselineShift', + baseprofile: 'baseProfile', + bbox: 'bbox', + begin: 'begin', + bias: 'bias', + by: 'by', + calcmode: 'calcMode', + capheight: 'capHeight', + 'cap-height': 'capHeight', + clip: 'clip', + clippath: 'clipPath', + 'clip-path': 'clipPath', + clippathunits: 'clipPathUnits', + cliprule: 'clipRule', + 'clip-rule': 'clipRule', + color: 'color', + colorinterpolation: 'colorInterpolation', + 'color-interpolation': 'colorInterpolation', + colorinterpolationfilters: 'colorInterpolationFilters', + 'color-interpolation-filters': 'colorInterpolationFilters', + colorprofile: 'colorProfile', + 'color-profile': 'colorProfile', + colorrendering: 'colorRendering', + 'color-rendering': 'colorRendering', + contentscripttype: 'contentScriptType', + contentstyletype: 'contentStyleType', + cursor: 'cursor', + cx: 'cx', + cy: 'cy', + d: 'd', + datatype: 'datatype', + decelerate: 'decelerate', + descent: 'descent', + diffuseconstant: 'diffuseConstant', + direction: 'direction', + display: 'display', + divisor: 'divisor', + dominantbaseline: 'dominantBaseline', + 'dominant-baseline': 'dominantBaseline', + dur: 'dur', + dx: 'dx', + dy: 'dy', + edgemode: 'edgeMode', + elevation: 'elevation', + enablebackground: 'enableBackground', + 'enable-background': 'enableBackground', + end: 'end', + exponent: 'exponent', + externalresourcesrequired: 'externalResourcesRequired', + fill: 'fill', + fillopacity: 'fillOpacity', + 'fill-opacity': 'fillOpacity', + fillrule: 'fillRule', + 'fill-rule': 'fillRule', + filter: 'filter', + filterres: 'filterRes', + filterunits: 'filterUnits', + floodopacity: 'floodOpacity', + 'flood-opacity': 'floodOpacity', + floodcolor: 'floodColor', + 'flood-color': 'floodColor', + focusable: 'focusable', + fontfamily: 'fontFamily', + 'font-family': 'fontFamily', + fontsize: 'fontSize', + 'font-size': 'fontSize', + fontsizeadjust: 'fontSizeAdjust', + 'font-size-adjust': 'fontSizeAdjust', + fontstretch: 'fontStretch', + 'font-stretch': 'fontStretch', + fontstyle: 'fontStyle', + 'font-style': 'fontStyle', + fontvariant: 'fontVariant', + 'font-variant': 'fontVariant', + fontweight: 'fontWeight', + 'font-weight': 'fontWeight', + format: 'format', + from: 'from', + fx: 'fx', + fy: 'fy', + g1: 'g1', + g2: 'g2', + glyphname: 'glyphName', + 'glyph-name': 'glyphName', + glyphorientationhorizontal: 'glyphOrientationHorizontal', + 'glyph-orientation-horizontal': 'glyphOrientationHorizontal', + glyphorientationvertical: 'glyphOrientationVertical', + 'glyph-orientation-vertical': 'glyphOrientationVertical', + glyphref: 'glyphRef', + gradienttransform: 'gradientTransform', + gradientunits: 'gradientUnits', + hanging: 'hanging', + horizadvx: 'horizAdvX', + 'horiz-adv-x': 'horizAdvX', + horizoriginx: 'horizOriginX', + 'horiz-origin-x': 'horizOriginX', + ideographic: 'ideographic', + imagerendering: 'imageRendering', + 'image-rendering': 'imageRendering', + in2: 'in2', + 'in': 'in', + inlist: 'inlist', + intercept: 'intercept', + k1: 'k1', + k2: 'k2', + k3: 'k3', + k4: 'k4', + k: 'k', + kernelmatrix: 'kernelMatrix', + kernelunitlength: 'kernelUnitLength', + kerning: 'kerning', + keypoints: 'keyPoints', + keysplines: 'keySplines', + keytimes: 'keyTimes', + lengthadjust: 'lengthAdjust', + letterspacing: 'letterSpacing', + 'letter-spacing': 'letterSpacing', + lightingcolor: 'lightingColor', + 'lighting-color': 'lightingColor', + limitingconeangle: 'limitingConeAngle', + local: 'local', + markerend: 'markerEnd', + 'marker-end': 'markerEnd', + markerheight: 'markerHeight', + markermid: 'markerMid', + 'marker-mid': 'markerMid', + markerstart: 'markerStart', + 'marker-start': 'markerStart', + markerunits: 'markerUnits', + markerwidth: 'markerWidth', + mask: 'mask', + maskcontentunits: 'maskContentUnits', + maskunits: 'maskUnits', + mathematical: 'mathematical', + mode: 'mode', + numoctaves: 'numOctaves', + offset: 'offset', + opacity: 'opacity', + operator: 'operator', + order: 'order', + orient: 'orient', + orientation: 'orientation', + origin: 'origin', + overflow: 'overflow', + overlineposition: 'overlinePosition', + 'overline-position': 'overlinePosition', + overlinethickness: 'overlineThickness', + 'overline-thickness': 'overlineThickness', + paintorder: 'paintOrder', + 'paint-order': 'paintOrder', + panose1: 'panose1', + 'panose-1': 'panose1', + pathlength: 'pathLength', + patterncontentunits: 'patternContentUnits', + patterntransform: 'patternTransform', + patternunits: 'patternUnits', + pointerevents: 'pointerEvents', + 'pointer-events': 'pointerEvents', + points: 'points', + pointsatx: 'pointsAtX', + pointsaty: 'pointsAtY', + pointsatz: 'pointsAtZ', + prefix: 'prefix', + preservealpha: 'preserveAlpha', + preserveaspectratio: 'preserveAspectRatio', + primitiveunits: 'primitiveUnits', + property: 'property', + r: 'r', + radius: 'radius', + refx: 'refX', + refy: 'refY', + renderingintent: 'renderingIntent', + 'rendering-intent': 'renderingIntent', + repeatcount: 'repeatCount', + repeatdur: 'repeatDur', + requiredextensions: 'requiredExtensions', + requiredfeatures: 'requiredFeatures', + resource: 'resource', + restart: 'restart', + result: 'result', + results: 'results', + rotate: 'rotate', + rx: 'rx', + ry: 'ry', + scale: 'scale', + security: 'security', + seed: 'seed', + shaperendering: 'shapeRendering', + 'shape-rendering': 'shapeRendering', + slope: 'slope', + spacing: 'spacing', + specularconstant: 'specularConstant', + specularexponent: 'specularExponent', + speed: 'speed', + spreadmethod: 'spreadMethod', + startoffset: 'startOffset', + stddeviation: 'stdDeviation', + stemh: 'stemh', + stemv: 'stemv', + stitchtiles: 'stitchTiles', + stopcolor: 'stopColor', + 'stop-color': 'stopColor', + stopopacity: 'stopOpacity', + 'stop-opacity': 'stopOpacity', + strikethroughposition: 'strikethroughPosition', + 'strikethrough-position': 'strikethroughPosition', + strikethroughthickness: 'strikethroughThickness', + 'strikethrough-thickness': 'strikethroughThickness', + string: 'string', + stroke: 'stroke', + strokedasharray: 'strokeDasharray', + 'stroke-dasharray': 'strokeDasharray', + strokedashoffset: 'strokeDashoffset', + 'stroke-dashoffset': 'strokeDashoffset', + strokelinecap: 'strokeLinecap', + 'stroke-linecap': 'strokeLinecap', + strokelinejoin: 'strokeLinejoin', + 'stroke-linejoin': 'strokeLinejoin', + strokemiterlimit: 'strokeMiterlimit', + 'stroke-miterlimit': 'strokeMiterlimit', + strokewidth: 'strokeWidth', + 'stroke-width': 'strokeWidth', + strokeopacity: 'strokeOpacity', + 'stroke-opacity': 'strokeOpacity', + suppresscontenteditablewarning: 'suppressContentEditableWarning', + suppresshydrationwarning: 'suppressHydrationWarning', + surfacescale: 'surfaceScale', + systemlanguage: 'systemLanguage', + tablevalues: 'tableValues', + targetx: 'targetX', + targety: 'targetY', + textanchor: 'textAnchor', + 'text-anchor': 'textAnchor', + textdecoration: 'textDecoration', + 'text-decoration': 'textDecoration', + textlength: 'textLength', + textrendering: 'textRendering', + 'text-rendering': 'textRendering', + to: 'to', + transform: 'transform', + 'typeof': 'typeof', + u1: 'u1', + u2: 'u2', + underlineposition: 'underlinePosition', + 'underline-position': 'underlinePosition', + underlinethickness: 'underlineThickness', + 'underline-thickness': 'underlineThickness', + unicode: 'unicode', + unicodebidi: 'unicodeBidi', + 'unicode-bidi': 'unicodeBidi', + unicoderange: 'unicodeRange', + 'unicode-range': 'unicodeRange', + unitsperem: 'unitsPerEm', + 'units-per-em': 'unitsPerEm', + unselectable: 'unselectable', + valphabetic: 'vAlphabetic', + 'v-alphabetic': 'vAlphabetic', + values: 'values', + vectoreffect: 'vectorEffect', + 'vector-effect': 'vectorEffect', + version: 'version', + vertadvy: 'vertAdvY', + 'vert-adv-y': 'vertAdvY', + vertoriginx: 'vertOriginX', + 'vert-origin-x': 'vertOriginX', + vertoriginy: 'vertOriginY', + 'vert-origin-y': 'vertOriginY', + vhanging: 'vHanging', + 'v-hanging': 'vHanging', + videographic: 'vIdeographic', + 'v-ideographic': 'vIdeographic', + viewbox: 'viewBox', + viewtarget: 'viewTarget', + visibility: 'visibility', + vmathematical: 'vMathematical', + 'v-mathematical': 'vMathematical', + vocab: 'vocab', + widths: 'widths', + wordspacing: 'wordSpacing', + 'word-spacing': 'wordSpacing', + writingmode: 'writingMode', + 'writing-mode': 'writingMode', + x1: 'x1', + x2: 'x2', + x: 'x', + xchannelselector: 'xChannelSelector', + xheight: 'xHeight', + 'x-height': 'xHeight', + xlinkactuate: 'xlinkActuate', + 'xlink:actuate': 'xlinkActuate', + xlinkarcrole: 'xlinkArcrole', + 'xlink:arcrole': 'xlinkArcrole', + xlinkhref: 'xlinkHref', + 'xlink:href': 'xlinkHref', + xlinkrole: 'xlinkRole', + 'xlink:role': 'xlinkRole', + xlinkshow: 'xlinkShow', + 'xlink:show': 'xlinkShow', + xlinktitle: 'xlinkTitle', + 'xlink:title': 'xlinkTitle', + xlinktype: 'xlinkType', + 'xlink:type': 'xlinkType', + xmlbase: 'xmlBase', + 'xml:base': 'xmlBase', + xmllang: 'xmlLang', + 'xml:lang': 'xmlLang', + xmlns: 'xmlns', + 'xml:space': 'xmlSpace', + xmlnsxlink: 'xmlnsXlink', + 'xmlns:xlink': 'xmlnsXlink', + xmlspace: 'xmlSpace', + y1: 'y1', + y2: 'y2', + y: 'y', + ychannelselector: 'yChannelSelector', + z: 'z', + zoomandpan: 'zoomAndPan' +}; + +function getStackAddendum$3() { + var stack = ReactDebugCurrentFrame.getStackAddendum(); + return stack != null ? stack : ''; +} + +{ + var warnedProperties$1 = {}; + var hasOwnProperty$1 = Object.prototype.hasOwnProperty; + var EVENT_NAME_REGEX = /^on./; + var INVALID_EVENT_NAME_REGEX = /^on[^A-Z]/; + var rARIA$1 = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$'); + var rARIACamel$1 = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$'); + + var validateProperty$1 = function (tagName, name, value, canUseEventSystem) { + if (hasOwnProperty$1.call(warnedProperties$1, name) && warnedProperties$1[name]) { + return true; + } + + var lowerCasedName = name.toLowerCase(); + if (lowerCasedName === 'onfocusin' || lowerCasedName === 'onfocusout') { + warning(false, 'React uses onFocus and onBlur instead of onFocusIn and onFocusOut. ' + 'All React events are normalized to bubble, so onFocusIn and onFocusOut ' + 'are not needed/supported by React.'); + warnedProperties$1[name] = true; + return true; + } + + // We can't rely on the event system being injected on the server. + if (canUseEventSystem) { + if (registrationNameModules.hasOwnProperty(name)) { + return true; + } + var registrationName = possibleRegistrationNames.hasOwnProperty(lowerCasedName) ? possibleRegistrationNames[lowerCasedName] : null; + if (registrationName != null) { + warning(false, 'Invalid event handler property `%s`. Did you mean `%s`?%s', name, registrationName, getStackAddendum$3()); + warnedProperties$1[name] = true; + return true; + } + if (EVENT_NAME_REGEX.test(name)) { + warning(false, 'Unknown event handler property `%s`. It will be ignored.%s', name, getStackAddendum$3()); + warnedProperties$1[name] = true; + return true; + } + } else if (EVENT_NAME_REGEX.test(name)) { + // If no event plugins have been injected, we are in a server environment. + // So we can't tell if the event name is correct for sure, but we can filter + // out known bad ones like `onclick`. We can't suggest a specific replacement though. + if (INVALID_EVENT_NAME_REGEX.test(name)) { + warning(false, 'Invalid event handler property `%s`. ' + 'React events use the camelCase naming convention, for example `onClick`.%s', name, getStackAddendum$3()); + } + warnedProperties$1[name] = true; + return true; + } + + // Let the ARIA attribute hook validate ARIA attributes + if (rARIA$1.test(name) || rARIACamel$1.test(name)) { + return true; + } + + if (lowerCasedName === 'innerhtml') { + warning(false, 'Directly setting property `innerHTML` is not permitted. ' + 'For more information, lookup documentation on `dangerouslySetInnerHTML`.'); + warnedProperties$1[name] = true; + return true; + } + + if (lowerCasedName === 'aria') { + warning(false, 'The `aria` attribute is reserved for future use in React. ' + 'Pass individual `aria-` attributes instead.'); + warnedProperties$1[name] = true; + return true; + } + + if (lowerCasedName === 'is' && value !== null && value !== undefined && typeof value !== 'string') { + warning(false, 'Received a `%s` for a string attribute `is`. If this is expected, cast ' + 'the value to a string.%s', typeof value, getStackAddendum$3()); + warnedProperties$1[name] = true; + return true; + } + + if (typeof value === 'number' && isNaN(value)) { + warning(false, 'Received NaN for the `%s` attribute. If this is expected, cast ' + 'the value to a string.%s', name, getStackAddendum$3()); + warnedProperties$1[name] = true; + return true; + } + + var isReserved = isReservedProp(name); + + // Known attributes should match the casing specified in the property config. + if (possibleStandardNames.hasOwnProperty(lowerCasedName)) { + var standardName = possibleStandardNames[lowerCasedName]; + if (standardName !== name) { + warning(false, 'Invalid DOM property `%s`. Did you mean `%s`?%s', name, standardName, getStackAddendum$3()); + warnedProperties$1[name] = true; + return true; + } + } else if (!isReserved && name !== lowerCasedName) { + // Unknown attributes should have lowercase casing since that's how they + // will be cased anyway with server rendering. + warning(false, 'React does not recognize the `%s` prop on a DOM element. If you ' + 'intentionally want it to appear in the DOM as a custom ' + 'attribute, spell it as lowercase `%s` instead. ' + 'If you accidentally passed it from a parent component, remove ' + 'it from the DOM element.%s', name, lowerCasedName, getStackAddendum$3()); + warnedProperties$1[name] = true; + return true; + } + + if (typeof value === 'boolean' && !shouldAttributeAcceptBooleanValue(name)) { + if (value) { + warning(false, 'Received `%s` for a non-boolean attribute `%s`.\n\n' + 'If you want to write it to the DOM, pass a string instead: ' + '%s="%s" or %s={value.toString()}.%s', value, name, name, value, name, getStackAddendum$3()); + } else { + warning(false, 'Received `%s` for a non-boolean attribute `%s`.\n\n' + 'If you want to write it to the DOM, pass a string instead: ' + '%s="%s" or %s={value.toString()}.\n\n' + 'If you used to conditionally omit it with %s={condition && value}, ' + 'pass %s={condition ? value : undefined} instead.%s', value, name, name, value, name, name, name, getStackAddendum$3()); + } + warnedProperties$1[name] = true; + return true; + } + + // Now that we've validated casing, do not validate + // data types for reserved props + if (isReserved) { + return true; + } + + // Warn when a known attribute is a bad type + if (!shouldSetAttribute(name, value)) { + warnedProperties$1[name] = true; + return false; + } + + return true; + }; +} + +var warnUnknownProperties = function (type, props, canUseEventSystem) { + var unknownProps = []; + for (var key in props) { + var isValid = validateProperty$1(type, key, props[key], canUseEventSystem); + if (!isValid) { + unknownProps.push(key); + } + } + + var unknownPropString = unknownProps.map(function (prop) { + return '`' + prop + '`'; + }).join(', '); + if (unknownProps.length === 1) { + warning(false, 'Invalid value for prop %s on <%s> tag. Either remove it from the element, ' + 'or pass a string or number value to keep it in the DOM. ' + 'For details, see https://fb.me/react-attribute-behavior%s', unknownPropString, type, getStackAddendum$3()); + } else if (unknownProps.length > 1) { + warning(false, 'Invalid values for props %s on <%s> tag. Either remove them from the element, ' + 'or pass a string or number value to keep them in the DOM. ' + 'For details, see https://fb.me/react-attribute-behavior%s', unknownPropString, type, getStackAddendum$3()); + } +}; + +function validateProperties$2(type, props, canUseEventSystem) { + if (isCustomComponent(type, props)) { + return; + } + warnUnknownProperties(type, props, canUseEventSystem); +} + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +// Based on reading the React.Children implementation. TODO: type this somewhere? + +var toArray = React.Children.toArray; + +var getStackAddendum = emptyFunction.thatReturns(''); + +{ + var validatePropertiesInDevelopment = function (type, props) { + validateProperties(type, props); + validateProperties$1(type, props); + validateProperties$2(type, props, /* canUseEventSystem */false); + }; + + var describeStackFrame = function (element) { + var source = element._source; + var type = element.type; + var name = getComponentName(type); + var ownerName = null; + return describeComponentFrame(name, source, ownerName); + }; + + var currentDebugStack = null; + var currentDebugElementStack = null; + var setCurrentDebugStack = function (stack) { + var frame = stack[stack.length - 1]; + currentDebugElementStack = frame.debugElementStack; + // We are about to enter a new composite stack, reset the array. + currentDebugElementStack.length = 0; + currentDebugStack = stack; + ReactDebugCurrentFrame.getCurrentStack = getStackAddendum; + }; + var pushElementToDebugStack = function (element) { + if (currentDebugElementStack !== null) { + currentDebugElementStack.push(element); + } + }; + var resetCurrentDebugStack = function () { + currentDebugElementStack = null; + currentDebugStack = null; + ReactDebugCurrentFrame.getCurrentStack = null; + }; + getStackAddendum = function () { + if (currentDebugStack === null) { + return ''; + } + var stack = ''; + var debugStack = currentDebugStack; + for (var i = debugStack.length - 1; i >= 0; i--) { + var frame = debugStack[i]; + var _debugElementStack = frame.debugElementStack; + for (var ii = _debugElementStack.length - 1; ii >= 0; ii--) { + stack += describeStackFrame(_debugElementStack[ii]); + } + } + return stack; + }; +} + +var didWarnDefaultInputValue = false; +var didWarnDefaultChecked = false; +var didWarnDefaultSelectValue = false; +var didWarnDefaultTextareaValue = false; +var didWarnInvalidOptionChildren = false; +var didWarnAboutNoopUpdateForComponent = {}; +var valuePropNames = ['value', 'defaultValue']; +var newlineEatingTags = { + listing: true, + pre: true, + textarea: true +}; + +function getComponentName(type) { + return typeof type === 'string' ? type : typeof type === 'function' ? type.displayName || type.name : null; +} + +// We accept any tag to be rendered but since this gets injected into arbitrary +// HTML, we want to make sure that it's a safe tag. +// http://www.w3.org/TR/REC-xml/#NT-Name +var VALID_TAG_REGEX = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/; // Simplified subset +var validatedTagCache = {}; +function validateDangerousTag(tag) { + if (!validatedTagCache.hasOwnProperty(tag)) { + !VALID_TAG_REGEX.test(tag) ? invariant(false, 'Invalid tag: %s', tag) : void 0; + validatedTagCache[tag] = true; + } +} + +var processStyleName = memoizeStringOnly(function (styleName) { + return hyphenateStyleName(styleName); +}); + +function createMarkupForStyles(styles) { + var serialized = ''; + var delimiter = ''; + for (var styleName in styles) { + if (!styles.hasOwnProperty(styleName)) { + continue; + } + var isCustomProperty = styleName.indexOf('--') === 0; + var styleValue = styles[styleName]; + { + if (!isCustomProperty) { + warnValidStyle$1(styleName, styleValue, getStackAddendum); + } + } + if (styleValue != null) { + serialized += delimiter + processStyleName(styleName) + ':'; + serialized += dangerousStyleValue(styleName, styleValue, isCustomProperty); + + delimiter = ';'; + } + } + return serialized || null; +} + +function warnNoop(publicInstance, callerName) { + { + var constructor = publicInstance.constructor; + var componentName = constructor && getComponentName(constructor) || 'ReactClass'; + var warningKey = componentName + '.' + callerName; + if (didWarnAboutNoopUpdateForComponent[warningKey]) { + return; + } + + warning(false, '%s(...): Can only update a mounting component. ' + 'This usually means you called %s() outside componentWillMount() on the server. ' + 'This is a no-op.\n\nPlease check the code for the %s component.', callerName, callerName, componentName); + didWarnAboutNoopUpdateForComponent[warningKey] = true; + } +} + +function shouldConstruct(Component) { + return Component.prototype && Component.prototype.isReactComponent; +} + +function getNonChildrenInnerMarkup(props) { + var innerHTML = props.dangerouslySetInnerHTML; + if (innerHTML != null) { + if (innerHTML.__html != null) { + return innerHTML.__html; + } + } else { + var content = props.children; + if (typeof content === 'string' || typeof content === 'number') { + return escapeTextForBrowser(content); + } + } + return null; +} + +function flattenTopLevelChildren(children) { + if (!React.isValidElement(children)) { + return toArray(children); + } + var element = children; + if (element.type !== REACT_FRAGMENT_TYPE) { + return [element]; + } + var fragmentChildren = element.props.children; + if (!React.isValidElement(fragmentChildren)) { + return toArray(fragmentChildren); + } + var fragmentChildElement = fragmentChildren; + return [fragmentChildElement]; +} + +function flattenOptionChildren(children) { + var content = ''; + // Flatten children and warn if they aren't strings or numbers; + // invalid types are ignored. + React.Children.forEach(children, function (child) { + if (child == null) { + return; + } + if (typeof child === 'string' || typeof child === 'number') { + content += child; + } else { + { + if (!didWarnInvalidOptionChildren) { + didWarnInvalidOptionChildren = true; + warning(false, 'Only strings and numbers are supported as