Socket
Socket
Sign inDemoInstall

@workday/canvas-kit-codemod

Package Overview
Dependencies
Maintainers
0
Versions
1058
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@workday/canvas-kit-codemod - npm Package Compare versions

Comparing version 12.0.0-alpha.918-next.0 to 12.0.0-alpha.919-next.0

5

dist/es6/v7/recategorizeIconButtons.js

@@ -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 @@ }

4

package.json

@@ -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

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