New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

yarn-changed-workspaces

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yarn-changed-workspaces - npm Package Compare versions

Comparing version 2.0.7 to 2.0.8

2

package.json
{
"name": "yarn-changed-workspaces",
"version": "2.0.7",
"version": "2.0.8",
"main": "./src/index.js",

@@ -5,0 +5,0 @@ "bin": "./bin/cli.js",

@@ -11,11 +11,13 @@ const _ = require("lodash");

}) => {
const result = {};
const formatName = (str) => (keyNaming ? _[keyNaming](str) : str);
const normalizeName = (str) => (namespace ? str.replace(namespace, "") : str);
const workspaces = await getChangedWorkspaces({ branch, projectRoot });
return Object.entries(workspaces).reduce((obj, [id, files]) => {
if (files.length <= 0) return obj;
return { ...obj, [formatName(normalizeName(id))]: files };
}, {});
Object.entries(workspaces).map(([id, files]) => {
if (files.length <= 0) return;
result[formatName(normalizeName(id))] = files;
});
return result;
};
module.exports.getChangedWorkspacesIds = getChangedWorkspacesIds;
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