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-beta.41 to 1.0.0-beta.45

lib/v1.0.0/import-path.js

6

lib/v0.15.0/import-path.js

@@ -78,6 +78,6 @@ 'use strict';

function transformer(file, api) {
function transformer(fileInfo, api) {
var j = api.jscodeshift;
return j(file.source).find(j.ImportDeclaration).filter(function (path) {
return j(fileInfo.source).find(j.ImportDeclaration).filter(function (path) {
// Only consider Material-UI imports

@@ -103,2 +103,2 @@ return path.value.source.value.indexOf('material-ui/') === 0;

}
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy92MC4xNS4wL2ltcG9ydC1wYXRoLmpzIl0sIm5hbWVzIjpbInRyYW5zZm9ybWVyIiwicGF0aENvbnZlcnNpb24iLCJhdmF0YXIiLCJiYWRnZSIsImRpYWxvZyIsImRpdmlkZXIiLCJwYXBlciIsInNsaWRlciIsImNoZWNrYm94IiwidG9nZ2xlIiwic25hY2tiYXIiLCJNdWlUaGVtZVByb3ZpZGVyIiwicGF0aEJhc2VTb3VyY2UiLCJwYXRoQmFzZVBhY2thZ2UiLCJnZXRQYXRoc0Jhc2UiLCJwYXRoIiwiaW5kZXhPZiIsIkVycm9yIiwiZmlsZSIsImFwaSIsImoiLCJqc2NvZGVzaGlmdCIsInNvdXJjZSIsImZpbmQiLCJJbXBvcnREZWNsYXJhdGlvbiIsImZpbHRlciIsInZhbHVlIiwicmVwbGFjZVdpdGgiLCJwYXRoT2xkIiwicGF0aHNCYXNlIiwicGF0aFN1ZmZpeCIsInN1YnN0cmluZyIsImxlbmd0aCIsInBhdGhOZXciLCJpbXBvcnREZWNsYXJhdGlvbiIsIm5vZGUi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HJldHVybiBqKGZpbGUuc291cmNlKVxuICAgIC5maW5kKGouSW1wb3J0RGVjbGFyYXRpb24pXG4gICAgLmZpbHRlcihwYXRoID0+IHtcbiAgICAgIC8vIE9ubHkgY29uc2lkZXIgTWF0ZXJpYWwtVUkgaW1wb3J0c1xuICAgICAgcmV0dXJuIHBhdGgudmFsdWUuc291cmNlLnZhbHVlLmluZGV4T2YoJ21hdGVyaWFsLXVpLycpID09PSAwO1xuICAgIH0pXG4gICAgLnJlcGxhY2VXaXRoKHBhdGggPT4ge1xuICAgICAgY29uc3QgcGF0aE9sZCA9IHBhdGgudmFsdWUuc291cmNlLnZhbHVlO1xuICAgICAgY29uc3QgcGF0aHNCYXNlID0gZ2V0UGF0aHNCYXNlKHBhdGhPbGQpO1xuICAgICAgY29uc3QgcGF0aFN1ZmZpeCA9IHBhdGhPbGQuc3Vic3RyaW5nKHBhdGhzQmFzZVswXS5sZW5ndGgpO1xuXG4gICAgICBsZXQgcGF0aE5ldztcblxuICAgICAgaWYgKHBhdGhDb252ZXJzaW9uW3BhdGhTdWZmaXhdKSB7XG4gICAgICAgIHBhdGhOZXcgPSBwYXRoc0Jhc2VbMV0gKyBwYXRoQ29udmVyc2lvbltwYXRoU3VmZml4XTtcbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIHBhdGhOZXcgPSBwYXRoc0Jhc2VbMV0gKyBwYXRoU3VmZml4O1xuICAgICAgfVxuXG4gICAgICByZXR1cm4gai5pbXBvcnREZWNsYXJhdGlvbihwYXRoLm5vZGUuc3BlY2lmaWVycywgai5saXRlcmFsKHBhdGhOZXcpKTtcbiAgICB9KVxuICAgIC50b1NvdXJjZSh7XG4gICAgICBxdW90ZTogJ3NpbmdsZScsXG4gICAgfSk7XG59XG4iXX0=
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy92MC4xNS4wL2ltcG9ydC1wYXRoLmpzIl0sIm5hbWVzIj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xuXG4gICAgICBsZXQgcGF0aE5ldztcblxuICAgICAgaWYgKHBhdGhDb252ZXJzaW9uW3BhdGhTdWZmaXhdKSB7XG4gICAgICAgIHBhdGhOZXcgPSBwYXRoc0Jhc2VbMV0gKyBwYXRoQ29udmVyc2lvbltwYXRoU3VmZml4XTtcbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIHBhdGhOZXcgPSBwYXRoc0Jhc2VbMV0gKyBwYXRoU3VmZml4O1xuICAgICAgfVxuXG4gICAgICByZXR1cm4gai5pbXBvcnREZWNsYXJhdGlvbihwYXRoLm5vZGUuc3BlY2lmaWVycywgai5saXRlcmFsKHBhdGhOZXcpKTtcbiAgICB9KVxuICAgIC50b1NvdXJjZSh7XG4gICAgICBxdW90ZTogJ3NpbmdsZScsXG4gICAgfSk7XG59XG4iXX0=

@@ -129,7 +129,7 @@ 'use strict';

module.exports = function transformer(file, api) {
module.exports = function transformer(fileInfo, api) {
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
var j = api.jscodeshift;
var root = j(file.source);
var root = j(fileInfo.source);
var importPath = options.importPath || 'material-ui/styles/colors';

@@ -144,2 +144,2 @@ var targetPath = options.targetPath || 'material-ui/colors';

};
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy92MS4wLjAvY29sb3ItaW1wb3J0cy5qcyJdLCJuYW1lcyI6WyJjb21tb25Db2xvcnMiLCJjb2xvckFjY2VudCIsImNvbG9ySWRlbnRpZmllciIsIm1hdGNoIiwicGFsZXR0ZSIsImh1ZSIsImNvbG9ySW1wb3J0UGF0aCIsImNvbG9yUGFsZXR0ZSIsImluZGV4T2YiLCJ0cmFuc2Zvcm1NZW1iZXJFeHByZXNzaW9ucyIsImlkZW50aWZpZXIiLCJqIiwicm9vdCIsImZpbmQiLCJNZW1iZXJFeHByZXNzaW9uIiwiZm9yRWFjaCIsInBhdGgiLCJub2RlIiwib2JqZW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2lmaWVyLmltcG9ydGVkLm5hbWUpO1xuICAgICAgICAgIGNvbnN0IGNvbG9yTW9kdWxlTmFtZSA9IGNvbG9ySW1wb3J0UGF0aChwYWxldHRlKTtcbiAgICAgICAgICBjb25zdCBtb2R1bGVQYXRoID0gYCR7dGFyZ2V0UGF0aH0vJHtjb2xvck1vZHVsZU5hbWV9YDtcbiAgICAgICAgICBjb25zdCBjb2xvcklkZW50aWZpZXIgPSBqLmlkZW50aWZpZXIoY29sb3JNb2R1bGVOYW1lKTtcblxuICAgICAgICAgIC8vIGltcG9ydCBjb2xvciBtb2R1bGUgKGlmIG5vdCBhbHJlYWR5IGltcG9ydGVkKVxuICAgICAgICAgIGlmIChpbXBvcnREZWNsYXJhdGlvbnMubWFwKHAgPT4gcC5zb3VyY2UudmFsdWUpLmluZGV4T2YobW9kdWxlUGF0aCkgPT09IC0xKSB7XG4gICAgICAgICAgICBpbXBvcnREZWNsYXJhdGlvbnMucHVzaChcbiAgICAgICAgICAgICAgai5pbXBvcnREZWNsYXJhdGlvbihcbiAgICAgICAgICAgICAgICBbai5pbXBvcnREZWZhdWx0U3BlY2lmaWVyKGNvbG9ySWRlbnRpZmllcildLFxuICAgICAgICAgICAgICAgIGoubGl0ZXJhbChtb2R1bGVQYXRoKSxcbiAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICk7XG4gICAgICAgICAgfVxuXG4gICAgICAgICAgLy8gY29uZGl0aW9uYWwgYXNzaWdubWVudCBleHByZXNzaW9uXG4gICAgICAgICAgaWYgKGh1ZSB8fCBjb2xvck1vZHVsZU5hbWUgPT09ICdjb21tb24nKSB7XG4gICAgICAgICAgICBjb25zdCBwcm9wZXJ0eSA9IGh1ZSB8fCBwYWxldHRlO1xuICAgICAgICAgICAgYXNzaWdubWVudEV4cHJlc3Npb25zLnB1c2goXG4gICAgICAgICAgICAgIGoudmFyaWFibGVEZWNsYXJhdGlvbignY29uc3QnLCBbXG4gICAgICAgICAgICAgICAgai52YXJpYWJsZURlY2xhcmF0b3IoXG4gICAgICAgICAgICAgICAgICBqLmlkZW50aWZpZXIobWVtYmVyU3BlY2lmaWVyLmxvY2FsLm5hbWUpLFxuICAgICAgICAgICAgICAgICAgai5tZW1iZXJFeHByZXNzaW9uKFxuICAgICAgICAgICAgICAgICAgICBjb2xvcklkZW50aWZpZXIsXG4gICAgICAgICAgICAgICAgICAgIC9eW198YS16XS9pLnRlc3QocHJvcGVydHkpID8gai5pZGVudGlmaWVyKHByb3BlcnR5KSA6IGoubGl0ZXJhbChwcm9wZXJ0eSksXG4gICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgIF0pLFxuICAgICAgICAgICAgKTtcbiAgICAgICAgICB9XG4gICAgICAgIH0pO1xuXG4gICAgICAgIHJldHVybiBpbXBvcnREZWNsYXJhdGlvbnMuY29uY2F0KGFzc2lnbm1lbnRFeHByZXNzaW9ucyk7XG4gICAgICB9KTtcbiAgICB9XG4gIH0pO1xufVxuXG4vKipcbiAqIFJlcGxhY2UgYWxsIG5hbWVzcGFjZSBpbXBvcnRzLlxuICogZS5nLiBpbXBvcnQgKiBhcyBjb2xvcnMgZnJvbSAnbWF0ZXJpYWwtdWkvc3R5bGVzL2NvbG9ycydcbiAqIEBwYXJhbSB7anNjb2Rlc2hpZnRfYXBpX29iamVjdH0galxuICogQHBhcmFtIHtqc2NvZGVzaGlmdF9hc3Rfb2JqZWN0fSByb290XG4gKiBAcGFyYW0ge3N0cmluZ30gaW1wb3J0UGF0aFxuICogQHBhcmFtIHtzdHJpbmd9IHRhcmdldFBhdGhcbiAqL1xuZnVuY3Rpb24gdHJhbnNmb3JtTmFtZXNwYWNlSW1wb3J0cyhqLCByb290LCBpbXBvcnRQYXRoLCB0YXJnZXRQYXRoKSB7XG4gIC8vIGZpbmQgbmFtZXNwYWNlIGltcG9ydHNcbiAgcm9vdC5maW5kKGouSW1wb3J0RGVjbGFyYXRpb24sIHsgc291cmNlOiB7IHZhbHVlOiBp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ChpZiBub3QgYWxyZWFkeSBpbXBvcnRlZClcbiAgICAgICAgICBpZiAoaW1wb3J0RGVjbGFyYXRpb25zLm1hcChwID0+IHAuc291cmNlLnZhbHVlKS5pbmRleE9mKG1vZHVsZVBhdGgpID09PSAtMSkge1xuICAgICAgICAgICAgaW1wb3J0RGVjbGFyYXRpb25zLnB1c2goXG4gICAgICAgICAgICAgIGouaW1wb3J0RGVjbGFyYXRpb24oXG4gICAgICAgICAgICAgICAgW2ouaW1wb3J0RGVmYXVsdFNwZWNpZmllcihjb2xvcklkZW50aWZpZXIpXSxcbiAgICAgICAgICAgICAgICBqLmxpdGVyYWwobW9kdWxlUGF0aCksXG4gICAgICAgICAgICAgICksXG4gICAgICAgICAgICApO1xuICAgICAgICAgIH1cblxuICAgICAgICAgIC8vIGNvbmRpdGlvbmFsIGFzc2lnbm1lbnQgZXhwcmVzc2lvblxuICAgICAgICAgIGlmIChodWUgfHwgY29sb3JNb2R1bGVOYW1lID09PSAnY29tbW9uJykge1xuICAgICAgICAgICAgY29uc3QgcHJvcGVydHkgPSBodWUgfHwgcGFsZXR0ZTtcbiAgICAgICAgICAgIGFzc2lnbm1lbnRFeHByZXNzaW9ucy5wdXNoKFxuICAgICAgICAgICAgICBqLnZhcmlhYmxlRGVjbGFyYXRpb24oJ2NvbnN0JywgW1xuICAgICAgICAgICAgICAgIGoudmFyaWFibGVEZWNsYXJhdG9yKFxuICAgICAgICAgICAgICAgICAgai5pZGVudGlmaWVyKG1lbWJlclNwZWNpZmllci5sb2NhbC5uYW1lKSxcbiAgICAgICAgICAgICAgICAgIGoubWVtYmVyRXhwcmVzc2lvbihcbiAgICAgICAgICAgICAgICAgICAgY29sb3JJZGVudGlmaWVyLFxuICAgICAgICAgICAgICAgICAgICAvXltffGEtel0vaS50ZXN0KHByb3BlcnR5KSA/IGouaWRlbnRpZmllcihwcm9wZXJ0eSkgOiBqLmxpdGVyYWwocHJvcGVydHkpLFxuICAgICAgICAgICAgICAgICAgKSxcbiAg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1wb3J0RGVjbGFyYXRpb24pLnJlcGxhY2VXaXRoKFxuICAgICAgICBqLmltcG9ydERlY2xhcmF0aW9uKFxuICAgICAgICAgIFtqLmltcG9ydE5hbWVzcGFjZVNwZWNpZmllcihqLmlkZW50aWZpZXIobmFtZXNwYWNlSW1wb3J0U3BlY2lmaWVyLmxvY2FsLm5hbWUpKV0sXG4gICAgICAgICAgai5saXRlcmFsKHRhcmdldFBhdGgpLFxuICAgICAgICApLFxuICAgICAgKTtcbiAgICAgIHRyYW5zZm9ybU1lbWJlckV4cHJlc3Npb25zKG5hbWVzcGFjZUltcG9ydFNwZWNpZmllci5sb2NhbC5uYW1lLCBqLCByb290KTtcbiAgICB9XG4gIH0pO1xufVxuXG5tb2R1bGUuZXhwb3J0cyA9IGZ1bmN0aW9uIHRyYW5zZm9ybWVyKGZpbGVJbmZvLCBhcGksIG9wdGlvbnMgPSB7fSkge1xuICBjb25zdCBqID0gYXBpLmpzY29kZXNoaWZ0O1xuICBjb25zdCByb290ID0gaihmaWxlSW5mby5zb3VyY2UpO1xuICBjb25zdCBpbXBvcnRQYXRoID0gb3B0aW9ucy5pbXBvcnRQYXRoIHx8ICdtYXRlcmlhbC11aS9zdHlsZXMvY29sb3JzJztcbiAgY29uc3QgdGFyZ2V0UGF0aCA9IG9wdGlvbnMudGFyZ2V0UGF0aCB8fCAnbWF0ZXJpYWwtdWkvY29sb3JzJztcblxuICAvLyB0cmFuc2Zvcm1zXG4gIHRyYW5zZm9ybU1lbWJlckltcG9ydHMoaiwgcm9vdCwgaW1wb3J0UGF0aCwgdGFyZ2V0UGF0aCk7XG4gIHRyYW5zZm9ybU5hbWVzcGFjZUltcG9ydHMoaiwgcm9vdCwgaW1wb3J0UGF0aCwgdGFyZ2V0UGF0aCk7XG5cbiAgcmV0dXJuIHJvb3QudG9Tb3VyY2UoeyBxdW90ZTogJ3NpbmdsZScgfSk7XG59O1xuIl19

@@ -46,5 +46,5 @@ 'use strict';

module.exports = function transformer(file, api) {
module.exports = function transformer(fileInfo, api) {
var j = api.jscodeshift;
var root = j(file.source);
var root = j(fileInfo.source);

@@ -55,2 +55,2 @@ // transforms

};
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy92MS4wLjAvc3ZnLWljb24taW1wb3J0cy5qcyJdLCJuYW1lcyI6WyJjYXBpdGFsaXplIiwic3RyaW5nIiwidG9VcHBlckNhc2UiLCJzbGljZSIsInBhc2NhbGl6ZSIsImljb25OYW1lIiwic3BsaXQiLCJtYXAiLCJqb2luIiwidHJhbnNmb3JtU1ZHSWNvbkltcG9ydHMiLCJqIiwicm9vdCIsInBhdGhNYXRjaFJlZ2V4IiwiZmluZCIsIkxpdGVyYWwiLCJmaWx0ZXIiLCJ0ZXN0IiwicGF0aCIsIm5vZGUiLCJ2YWx1ZSIsImZvckVhY2giLCJtYXRjaCIsIm1vZHVsZSIsImV4cG9ydHMiLCJ0cmFuc2Zvcm1lciIsImZpbGUiLCJhcGkiLCJqc2NvZGVzaGlmdCIsInNvdXJjZSIsInRvU291cmNlIiwicXVvdGUiXSwibWFwcGluZ3MiOiI7Ozs7QUFBQTs7OztBQUlBLFNBQVNBLFVBQVQsQ0FBb0JDLE1BQXBCLEVBQTRCO0FBQzFCLFNBQU9BLGNBQVlBLE9BQU8sQ0FBUCxFQUFVQyxXQUFWLEVBQVosR0FBc0NELE9BQU9FLEtBQVAsQ0FBYSxDQUFiLENBQXRDLEdBQTBERixNQUFqRTtBQUNEOztBQUVEOzs7OztBQUtBLFNBQVNHLFNBQVQsQ0FBbUJDLFFBQW5CLEVBQTZCO0FBQzNCLFNBQU9BLFNBQ0pDLEtBREksQ0FDRSxHQURGLEVBRUpDLEdBRkksQ0FFQVAsVUFGQSxFQUdKUSxJQUhJLENBR0MsRUFIRCxDQUFQO0FBSUQ7O0FBRUQ7Ozs7Ozs7O0FBUUEsU0FBU0MsdUJBQVQsQ0FBaUNDLENBQWpD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nN0IHJvb3QgPSBqKGZpbGVJbmZvLnNvdXJjZSk7XG5cbiAgLy8gdHJhbnNmb3Jtc1xuICB0cmFuc2Zvcm1TVkdJY29uSW1wb3J0cyhqLCByb290KTtcbiAgcmV0dXJuIHJvb3QudG9Tb3VyY2UoeyBxdW90ZTogJ3NpbmdsZScgfSk7XG59O1xuIl19

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

"author": "Material-UI Team",
"version": "1.0.0-beta.41",
"version": "1.0.0-beta.45",
"description": "Codemod scripts for Material-UI.",

@@ -20,3 +20,3 @@ "keywords": [

"test:watch": "yarn test:unit --watch",
"build": "../../node_modules/.bin/rimraf lib && ../../node_modules/.bin/babel ./src --out-dir ./lib",
"build": "../../node_modules/.bin/rimraf lib && ../../node_modules/.bin/babel ./src --out-dir ./lib --ignore *.test",
"version": "npm publish"

@@ -31,3 +31,3 @@ },

"devDependencies": {
"jscodeshift": "^0.4.0"
"jscodeshift": "^0.5.0"
},

@@ -34,0 +34,0 @@ "sideEffects": false,

@@ -24,2 +24,17 @@ # @material-ui/codemod

#### `import-path`
Updates the `import-paths` for the new location of the components.
Material-UI v1.0.0 flatten the import paths.
The diff should look like this:
```diff
-import { MenuItem } from 'material-ui/Menu';
+import MenuItem from 'material-ui/MenuItem';
```
```sh
find src -name '*.js' -print | xargs jscodeshift -t node_modules/@material-ui/codemod/lib/v0.15.0/import-path.js
```
#### `color-imports`

@@ -26,0 +41,0 @@

@@ -72,6 +72,6 @@ const pathConversion = {

export default function transformer(file, api) {
export default function transformer(fileInfo, api) {
const j = api.jscodeshift;
return j(file.source)
return j(fileInfo.source)
.find(j.ImportDeclaration)

@@ -78,0 +78,0 @@ .filter(path => {

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

module.exports = function transformer(file, api, options = {}) {
module.exports = function transformer(fileInfo, api, options = {}) {
const j = api.jscodeshift;
const root = j(file.source);
const root = j(fileInfo.source);
const importPath = options.importPath || 'material-ui/styles/colors';

@@ -155,0 +155,0 @@ const targetPath = options.targetPath || 'material-ui/colors';

@@ -42,5 +42,5 @@ /**

module.exports = function transformer(file, api) {
module.exports = function transformer(fileInfo, api) {
const j = api.jscodeshift;
const root = j(file.source);
const root = j(fileInfo.source);

@@ -47,0 +47,0 @@ // transforms

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