Socket
Socket
Sign inDemoInstall

@material-ui/utils

Package Overview
Dependencies
15
Maintainers
6
Versions
51
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.0.0-alpha.1 to 5.0.0-alpha.8

chainPropTypes.d.ts

1

deepmerge.js

@@ -33,2 +33,3 @@ "use strict";

if (isPlainObject(source[key]) && key in target) {
// Since `output` is a clone of `target` and we have narrowed `target` in this block we can cast to the same type.
output[key] = deepmerge(target[key], source[key], options);

@@ -35,0 +36,0 @@ } else {

9

elementTypeAcceptingRef.js

@@ -5,4 +5,2 @@ "use strict";

var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
Object.defineProperty(exports, "__esModule", {

@@ -13,3 +11,3 @@ value: true

var PropTypes = _interopRequireWildcard(require("prop-types"));
var _propTypes = _interopRequireDefault(require("prop-types"));

@@ -20,4 +18,3 @@ var _chainPropTypes = _interopRequireDefault(require("./chainPropTypes"));

// elementType.prototype?.isReactComponent
var _elementType$prototyp = elementType.prototype,
prototype = _elementType$prototyp === void 0 ? {} : _elementType$prototyp;
var prototype = elementType.prototype;
return Boolean(prototype.isReactComponent);

@@ -56,4 +53,4 @@ }

var _default = (0, _chainPropTypes.default)(PropTypes.elementType, elementTypeAcceptingRef);
var _default = (0, _chainPropTypes.default)(_propTypes.default.elementType, elementTypeAcceptingRef);
exports.default = _default;

@@ -18,2 +18,3 @@ import _extends from "@babel/runtime/helpers/esm/extends";

if (isPlainObject(source[key]) && key in target) {
// Since `output` is a clone of `target` and we have narrowed `target` in this block we can cast to the same type.
output[key] = deepmerge(target[key], source[key], options);

@@ -20,0 +21,0 @@ } else {

@@ -1,2 +0,2 @@

import * as PropTypes from 'prop-types';
import PropTypes from 'prop-types';
import chainPropTypes from './chainPropTypes';

@@ -7,3 +7,3 @@

const {
prototype = {}
prototype
} = elementType;

@@ -10,0 +10,0 @@ return Boolean(prototype.isReactComponent);

@@ -5,4 +5,3 @@ import _extends from "@babel/runtime/helpers/esm/extends";

// the module was forked.
// Only exported for test purposes.
export const specialProperty = 'exact-prop: \u200b';
const specialProperty = 'exact-prop: \u200b';
export default function exactProp(propTypes) {

@@ -9,0 +8,0 @@ if (process.env.NODE_ENV === 'production') {

@@ -10,7 +10,2 @@ import { ForwardRef, Memo } from 'react-is'; // Simplified polyfill for IE 11 support

}
/**
* @param {function} Component
* @param {string} fallback
* @returns {string | undefined}
*/

@@ -29,5 +24,2 @@ function getFunctionComponentName(Component, fallback = '') {

* originally forked from recompose/getDisplayName with added IE 11 support
*
* @param {React.ReactType} Component
* @returns {string | undefined}
*/

@@ -47,4 +39,5 @@

return getFunctionComponentName(Component, 'Component');
}
} // TypeScript can't have components as objects but they exist in the form of `memo` or `Suspense`
if (typeof Component === 'object') {

@@ -51,0 +44,0 @@ switch (Component.$$typeof) {

@@ -20,2 +20,3 @@ import _extends from "@babel/runtime/helpers/esm/extends";

if (isPlainObject(source[key]) && key in target) {
// Since `output` is a clone of `target` and we have narrowed `target` in this block we can cast to the same type.
output[key] = deepmerge(target[key], source[key], options);

@@ -22,0 +23,0 @@ } else {

@@ -1,2 +0,2 @@

import * as PropTypes from 'prop-types';
import PropTypes from 'prop-types';
import chainPropTypes from './chainPropTypes';

@@ -6,4 +6,3 @@

// elementType.prototype?.isReactComponent
var _elementType$prototyp = elementType.prototype,
prototype = _elementType$prototyp === void 0 ? {} : _elementType$prototyp;
var prototype = elementType.prototype;
return Boolean(prototype.isReactComponent);

@@ -10,0 +9,0 @@ }

@@ -6,4 +6,3 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";

// the module was forked.
// Only exported for test purposes.
export var specialProperty = "exact-prop: \u200B";
var specialProperty = "exact-prop: \u200B";
export default function exactProp(propTypes) {

@@ -10,0 +9,0 @@ if (process.env.NODE_ENV === 'production') {

@@ -11,7 +11,2 @@ import _typeof from "@babel/runtime/helpers/esm/typeof";

}
/**
* @param {function} Component
* @param {string} fallback
* @returns {string | undefined}
*/

@@ -31,5 +26,2 @@ function getFunctionComponentName(Component) {

* originally forked from recompose/getDisplayName with added IE 11 support
*
* @param {React.ReactType} Component
* @returns {string | undefined}
*/

@@ -49,4 +41,5 @@

return getFunctionComponentName(Component, 'Component');
}
} // TypeScript can't have components as objects but they exist in the form of `memo` or `Suspense`
if (_typeof(Component) === 'object') {

@@ -53,0 +46,0 @@ switch (Component.$$typeof) {

@@ -1,2 +0,2 @@

/** @license Material-UI v5.0.0-alpha.1
/** @license Material-UI v5.0.0-alpha.8
*

@@ -3,0 +3,0 @@ * This source code is licensed under the MIT license found in the

@@ -9,3 +9,2 @@ "use strict";

exports.default = exactProp;
exports.specialProperty = void 0;

@@ -19,5 +18,3 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));

// the module was forked.
// Only exported for test purposes.
var specialProperty = "exact-prop: \u200B";
exports.specialProperty = specialProperty;

@@ -24,0 +21,0 @@ function exactProp(propTypes) {

@@ -24,9 +24,3 @@ "use strict";

}
/**
* @param {function} Component
* @param {string} fallback
* @returns {string | undefined}
*/
function getFunctionComponentName(Component) {

@@ -45,5 +39,2 @@ var fallback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';

* originally forked from recompose/getDisplayName with added IE 11 support
*
* @param {React.ReactType} Component
* @returns {string | undefined}
*/

@@ -63,4 +54,5 @@

return getFunctionComponentName(Component, 'Component');
}
} // TypeScript can't have components as objects but they exist in the form of `memo` or `Suspense`
if ((0, _typeof2.default)(Component) === 'object') {

@@ -67,0 +59,0 @@ switch (Component.$$typeof) {

@@ -1,2 +0,2 @@

/** @license Material-UI v5.0.0-alpha.1
/** @license Material-UI v5.0.0-alpha.8
*

@@ -3,0 +3,0 @@ * This source code is licensed under the MIT license found in the

{
"name": "@material-ui/utils",
"version": "5.0.0-alpha.1",
"version": "5.0.0-alpha.8",
"private": false,

@@ -24,3 +24,3 @@ "author": "Material-UI Team",

},
"homepage": "https://github.com/mui-org/material-ui/tree/master/packages/material-ui-utils",
"homepage": "https://github.com/mui-org/material-ui/tree/next/packages/material-ui-utils",
"peerDependencies": {

@@ -32,2 +32,4 @@ "react": "^16.8.0",

"@babel/runtime": "^7.4.4",
"@types/prop-types": "^15.7.3",
"@types/react-is": "^16.7.1",
"prop-types": "^15.7.2",

@@ -34,0 +36,0 @@ "react-is": "^16.8.0"

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc