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

@material-ui/codemod

Package Overview
Dependencies
Maintainers
5
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@material-ui/codemod - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

4

lib/v1.0.0/color-imports.js
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _interopRequireDefault = require("@babel/runtime/helpers/builtin/interopRequireDefault");
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/builtin/slicedToArray"));

@@ -7,0 +7,0 @@ // This codemod attempts to fix the color imports breaking change introduced in

@@ -7,3 +7,3 @@ "use strict";

exports.default = transformer;
var entryModuleToFlatten = ['BottomNavigation', 'BottomNavigationAction', 'Card', 'CardActions', 'CardContent', 'CardHeader', 'CardMedia', 'CircularProgress', 'ClickAwayListener', 'Collapse', 'Dialog', 'DialogActions', 'DialogContent', 'DialogContentText', 'DialogTitle', 'ExpansionPanel', 'ExpansionPanelActions', 'ExpansionPanelDetails', 'ExpansionPanelSummary', 'Fade', 'Form', 'FormControl', 'FormControlLabel', 'FormGroup', 'FormHelperText', 'FormLabel', 'GridList', 'GridListTile', 'Grow', 'Input', 'InputLabel', 'LinearProgress', 'List', 'ListItem', 'ListItemAvatar', 'ListItemIcon', 'ListItemSecondaryAction', 'ListItemText', 'Menu', 'MenuItem', 'Progress', 'Radio', 'RadioGroup', 'Slide', 'Step', 'StepButton', 'StepContent', 'Stepper', 'Stepper', 'Tab', 'Table', 'TableBody', 'TableCell', 'TableFooter', 'TablePagination', 'TableRow', 'Tabs', 'withMobileDialog', 'withWidth', 'Zoom'];
var entryModuleToFlatten = ['BottomNavigation', 'BottomNavigationAction', 'Card', 'CardActions', 'CardContent', 'CardHeader', 'CardMedia', 'CircularProgress', 'ClickAwayListener', 'Collapse', 'Dialog', 'DialogActions', 'DialogContent', 'DialogContentText', 'DialogTitle', 'ExpansionPanel', 'ExpansionPanelActions', 'ExpansionPanelDetails', 'ExpansionPanelSummary', 'Fade', 'Form', 'FormControl', 'FormControlLabel', 'FormGroup', 'FormHelperText', 'FormLabel', 'GridList', 'GridListTile', 'Grow', 'Input', 'InputLabel', 'LinearProgress', 'List', 'ListItem', 'ListItemAvatar', 'ListItemIcon', 'ListItemSecondaryAction', 'ListItemText', 'ListSubheader', 'Menu', 'MenuItem', 'Progress', 'Radio', 'RadioGroup', 'Slide', 'Step', 'StepButton', 'StepContent', 'Stepper', 'Stepper', 'Tab', 'Table', 'TableBody', 'TableCell', 'TableFooter', 'TableHead', 'TablePagination', 'TableRow', 'Tabs', 'withMobileDialog', 'withWidth', 'Zoom'];
var keepSpecifiers = ['withWidth'];

@@ -10,0 +10,0 @@

"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _interopRequireDefault = require("@babel/runtime/helpers/builtin/interopRequireDefault");
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/builtin/slicedToArray"));

@@ -7,0 +7,0 @@ /**

@@ -5,3 +5,3 @@ {

"author": "Material-UI Team",
"version": "1.0.0",
"version": "1.1.0",
"description": "Codemod scripts for Material-UI.",

@@ -8,0 +8,0 @@ "keywords": [

@@ -40,2 +40,3 @@ const entryModuleToFlatten = [

'ListItemText',
'ListSubheader',
'Menu',

@@ -57,2 +58,3 @@ 'MenuItem',

'TableFooter',
'TableHead',
'TablePagination',

@@ -59,0 +61,0 @@ 'TableRow',

@@ -48,2 +48,3 @@ import React from 'react';

} from '@material-ui/core/Table';
import TableHead from '@material-ui/core/Table/TableHead';
import Input, { InputLabel } from '@material-ui/core/Input';

@@ -55,1 +56,2 @@ import Grow from '@material-ui/core/transitions/Grow';

import ClickAwayListener from '@material-ui/core/utils/ClickAwayListener';
import ListSubheader from '@material-ui/core/List/ListSubheader';

@@ -52,2 +52,3 @@ import React from 'react';

import Table from '@material-ui/core/Table';
import TableHead from '@material-ui/core/TableHead';
import InputLabel from '@material-ui/core/InputLabel';

@@ -60,1 +61,2 @@ import Input from '@material-ui/core/Input';

import ClickAwayListener from '@material-ui/core/ClickAwayListener';
import ListSubheader from '@material-ui/core/ListSubheader';
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