Socket
Socket
Sign inDemoInstall

synp

Package Overview
Dependencies
Maintainers
2
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

synp - npm Package Compare versions

Comparing version 1.8.2 to 1.8.3

7

CHANGELOG.md

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

4

lib/lockfileV1/tree.js

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

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