Comparing version 1.8.2 to 1.8.3
@@ -0,1 +1,8 @@ | ||
## [1.8.3](https://github.com/imsnif/synp/compare/v1.8.2...v1.8.3) (2020-09-26) | ||
### Bug Fixes | ||
* fix module tree sorting ([949a077](https://github.com/imsnif/synp/commit/949a077830001e2b321593c9cd83a46de6f31df6)), closes [#51](https://github.com/imsnif/synp/issues/51) | ||
## [1.8.2](https://github.com/imsnif/synp/compare/v1.8.1...v1.8.2) (2020-08-31) | ||
@@ -2,0 +9,0 @@ |
@@ -46,4 +46,4 @@ 'use strict' | ||
buildNpmTree (nodeModulesTree, yarnObject, workspacesTree) { | ||
const sortedNodeModules = Object.keys(nodeModulesTree) | ||
.sort((a, b) => a.split(sep).length < b.split(sep).length ? -1 : 1) | ||
const countDepth = (path) => (path.match(new RegExp(`${sep}node_modules${sep}`, 'g')) || []).length | ||
const sortedNodeModules = Object.keys(nodeModulesTree).sort((a, b) => countDepth(a) < countDepth(b) ? -1 : 1) | ||
const basePath = sortedNodeModules[0].split(sep) | ||
@@ -50,0 +50,0 @@ |
{ | ||
"name": "synp", | ||
"version": "1.8.2", | ||
"version": "1.8.3", | ||
"description": "Convert yarn.lock to package-lock.json and vice versa", | ||
@@ -44,4 +44,4 @@ "keywords": [ | ||
"@semantic-release/git": "^9.0.0", | ||
"@semantic-release/github": "^7.0.7", | ||
"@semantic-release/npm": "^7.0.5", | ||
"@semantic-release/github": "^7.1.1", | ||
"@semantic-release/npm": "^7.0.6", | ||
"coveralls": "^3.1.0", | ||
@@ -48,0 +48,0 @@ "nyc": "15.1.0", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
60556
0