mirror of
https://github.com/henrywhitaker3/Speedtest-Tracker.git
synced 2026-01-03 03:27:21 +01:00
Updated to v1.3.6
This commit is contained in:
19
conf/site/node_modules/mini-create-react-context/dist/esm/index.js
generated
vendored
19
conf/site/node_modules/mini-create-react-context/dist/esm/index.js
generated
vendored
@@ -1,10 +1,15 @@
|
||||
import React, { Component } from 'react';
|
||||
import _inheritsLoose from '@babel/runtime/helpers/inheritsLoose';
|
||||
import _inheritsLoose from '@babel/runtime/helpers/esm/inheritsLoose';
|
||||
import PropTypes from 'prop-types';
|
||||
import gud from 'gud';
|
||||
import warning from 'tiny-warning';
|
||||
|
||||
var MAX_SIGNED_31_BIT_INT = 1073741823;
|
||||
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : {};
|
||||
|
||||
function getUniqueId() {
|
||||
var key = '__global_unique_id__';
|
||||
return commonjsGlobal[key] = (commonjsGlobal[key] || 0) + 1;
|
||||
}
|
||||
|
||||
function objectIs(x, y) {
|
||||
if (x === y) {
|
||||
@@ -44,11 +49,9 @@ function onlyChild(children) {
|
||||
function createReactContext(defaultValue, calculateChangedBits) {
|
||||
var _Provider$childContex, _Consumer$contextType;
|
||||
|
||||
var contextProp = '__create-react-context-' + gud() + '__';
|
||||
var contextProp = '__create-react-context-' + getUniqueId() + '__';
|
||||
|
||||
var Provider =
|
||||
/*#__PURE__*/
|
||||
function (_Component) {
|
||||
var Provider = /*#__PURE__*/function (_Component) {
|
||||
_inheritsLoose(Provider, _Component);
|
||||
|
||||
function Provider() {
|
||||
@@ -100,9 +103,7 @@ function createReactContext(defaultValue, calculateChangedBits) {
|
||||
|
||||
Provider.childContextTypes = (_Provider$childContex = {}, _Provider$childContex[contextProp] = PropTypes.object.isRequired, _Provider$childContex);
|
||||
|
||||
var Consumer =
|
||||
/*#__PURE__*/
|
||||
function (_Component2) {
|
||||
var Consumer = /*#__PURE__*/function (_Component2) {
|
||||
_inheritsLoose(Consumer, _Component2);
|
||||
|
||||
function Consumer() {
|
||||
|
||||
Reference in New Issue
Block a user