Socket
Socket
Sign inDemoInstall

@lerna/package-graph

Package Overview
Dependencies
Maintainers
4
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lerna/package-graph - npm Package Compare versions

Comparing version 3.0.0 to 3.1.2

12

CHANGELOG.md

@@ -6,2 +6,14 @@ # Change Log

<a name="3.1.2"></a>
## [3.1.2](https://github.com/lerna/lerna/compare/v3.1.1...v3.1.2) (2018-08-20)
### Bug Fixes
* **package-graph:** Throw errors when package names are not unique ([387df2b](https://github.com/lerna/lerna/commit/387df2b))
<a name="3.0.0"></a>

@@ -8,0 +20,0 @@ # [3.0.0](https://github.com/lerna/lerna/compare/v3.0.0-rc.0...v3.0.0) (2018-08-10)

@@ -5,2 +5,3 @@ "use strict";

const semver = require("semver");
const ValidationError = require("@lerna/validation-error");

@@ -70,2 +71,24 @@ /**

if (packages.size !== this.size) {
// weed out the duplicates
const seen = new Map();
for (const { name, location } of packages) {
if (seen.has(name)) {
seen.get(name).push(location);
} else {
seen.set(name, [location]);
}
}
for (const [name, locations] of seen) {
if (locations.length > 1) {
throw new ValidationError(
"ENAME",
[`Package name "${name}" used in multiple packages:`, ...locations].join("\n\t")
);
}
}
}
this.forEach((currentNode, currentName) => {

@@ -72,0 +95,0 @@ const graphDependencies =

5

package.json
{
"name": "@lerna/package-graph",
"version": "3.0.0",
"version": "3.1.2",
"description": "Lerna's internal representation of a package graph",

@@ -33,6 +33,7 @@ "keywords": [

"dependencies": {
"@lerna/validation-error": "^3.0.0",
"npm-package-arg": "^6.0.0",
"semver": "^5.5.0"
},
"gitHead": "0c40a17a7cd4e9acd8e7ec33ffacd1c1acef5dc6"
"gitHead": "6abc0c95ae6fc6e613e74618d86a060ae218938c"
}
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