Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@material-ui/system

Package Overview
Dependencies
Maintainers
6
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@material-ui/system - npm Package Compare versions

Comparing version 4.0.1 to 4.0.2

4

compose.js

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

var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _merge = _interopRequireDefault(require("./merge"));

@@ -46,3 +48,3 @@

fn.propTypes = process.env.NODE_ENV !== 'production' ? styles.reduce(function (acc, style) {
return Object.assign(acc, style.propTypes);
return (0, _extends2.default)(acc, style.propTypes);
}, {}) : {};

@@ -49,0 +51,0 @@ fn.filterProps = styles.reduce(function (acc, style) {

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

import _extends from "@babel/runtime/helpers/extends";
import merge from './merge';

@@ -29,3 +30,3 @@

fn.propTypes = process.env.NODE_ENV !== 'production' ? styles.reduce((acc, style) => Object.assign(acc, style.propTypes), {}) : {};
fn.propTypes = process.env.NODE_ENV !== 'production' ? styles.reduce((acc, style) => _extends(acc, style.propTypes), {}) : {};
fn.filterProps = styles.reduce((acc, style) => acc.concat(style.filterProps), []);

@@ -32,0 +33,0 @@ return fn;

import PropTypes from 'prop-types';
const responsivePropType = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.object]) : {};
const responsivePropType = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.object, PropTypes.array]) : {};
export default responsivePropType;

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

import _extends from "@babel/runtime/helpers/extends";
import merge from './merge';

@@ -36,3 +37,3 @@

fn.propTypes = process.env.NODE_ENV !== 'production' ? styles.reduce(function (acc, style) {
return Object.assign(acc, style.propTypes);
return _extends(acc, style.propTypes);
}, {}) : {};

@@ -39,0 +40,0 @@ fn.filterProps = styles.reduce(function (acc, style) {

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

/** @license Material-UI v4.0.1
/** @license Material-UI v4.0.2
*

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

import PropTypes from 'prop-types';
var responsivePropType = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.object]) : {};
var responsivePropType = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.object, PropTypes.array]) : {};
export default responsivePropType;

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

import { CSSProperties } from '@material-ui/styles';
import * as CSS from 'csstype';

@@ -7,7 +6,2 @@

type ThemeOf<Props> = Props extends WithTheme<infer Theme> ? Theme : never;
type WithThemeOfProps<Props> = WithTheme<ThemeOf<Props>>;
interface WithTheme<Theme extends object> {
theme?: Theme;
}
export type PropsFor<SomeStyleFunction> = SomeStyleFunction extends StyleFunction<infer Props>

@@ -57,4 +51,6 @@ ? Props

type ComposedStyleProps<T> = ComposedArg<T>;
type Composed<T extends Array<StyleFunction<any>>> = StyleFunction<ComposedStyleProps<T>>;
export function compose<T extends Array<StyleFunction<any>>>(...args: T): Composed<T>;
export type ComposedStyleFunction<T extends Array<StyleFunction<any>>> = StyleFunction<
ComposedStyleProps<T>
>;
export function compose<T extends Array<StyleFunction<any>>>(...args: T): ComposedStyleFunction<T>;

@@ -70,3 +66,3 @@ // css.js

export const flexbox: SimpleStyleFunction<
| 'flexboxDirection'
| 'flexDirection'
| 'flexWrap'

@@ -73,0 +69,0 @@ | 'justifyContent'

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

/** @license Material-UI v4.0.1
/** @license Material-UI v4.0.2
*

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

{
"name": "@material-ui/system",
"version": "4.0.1",
"version": "4.0.2",
"private": false,

@@ -5,0 +5,0 @@ "author": "Material-UI Team",

@@ -12,4 +12,4 @@ "use strict";

var responsivePropType = process.env.NODE_ENV !== 'production' ? _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string, _propTypes.default.object]) : {};
var responsivePropType = process.env.NODE_ENV !== 'production' ? _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string, _propTypes.default.object, _propTypes.default.array]) : {};
var _default = responsivePropType;
exports.default = _default;

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc