@workday/canvas-kit-codemod
Advanced tools
Comparing version 12.0.0-alpha.918-next.0 to 12.0.0-alpha.919-next.0
@@ -111,3 +111,3 @@ import { getImportRenameMap } from './utils/getImportRenameMap'; | ||
buttonImports.forEach(nodePath => { | ||
var _a, _b, _c; | ||
var _a, _b; | ||
const { node } = nodePath; | ||
@@ -137,5 +137,4 @@ const specifiersToRemove = ['IconButton']; | ||
}); | ||
console.log((_b = node.specifiers) === null || _b === void 0 ? void 0 : _b.length); | ||
// if we removed all specifiers, remove the import | ||
if (!((_c = node.specifiers) === null || _c === void 0 ? void 0 : _c.length)) { | ||
if (!((_b = node.specifiers) === null || _b === void 0 ? void 0 : _b.length)) { | ||
nodePath.prune(); | ||
@@ -142,0 +141,0 @@ } |
@@ -5,3 +5,3 @@ { | ||
"license": "Apache-2.0", | ||
"version": "12.0.0-alpha.918-next.0", | ||
"version": "12.0.0-alpha.919-next.0", | ||
"description": "A collection of codemods for use on Workday Canvas Kit packages.", | ||
@@ -47,3 +47,3 @@ "main": "dist/es6/index.js", | ||
}, | ||
"gitHead": "3f21a8c474728598369595c8978854dab2355235" | ||
"gitHead": "4fa21d7c07d138e03daf228f4a6a17fcbf379a3f" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
265055
4775