Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lerna/symlink-binary

Package Overview
Dependencies
Maintainers
2
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lerna/symlink-binary - npm Package Compare versions

Comparing version 3.7.0 to 3.7.2

11

CHANGELOG.md

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

## [3.7.2](https://github.com/lerna/lerna/compare/v3.7.1...v3.7.2) (2018-12-21)
### Bug Fixes
* **symlink-binary:** Use Package.lazy() instead of private resolver ([83fe3ef](https://github.com/lerna/lerna/commit/83fe3ef))
# [3.7.0](https://github.com/lerna/lerna/compare/v3.6.0...v3.7.0) (2018-12-19)

@@ -8,0 +19,0 @@

9

package.json
{
"name": "@lerna/symlink-binary",
"version": "3.7.0",
"version": "3.7.2",
"description": "An internal Lerna tool",

@@ -34,8 +34,7 @@ "keywords": [

"@lerna/create-symlink": "^3.6.0",
"@lerna/package": "^3.7.0",
"@lerna/package": "^3.7.2",
"fs-extra": "^7.0.0",
"p-map": "^1.2.0",
"read-pkg": "^3.0.0"
"p-map": "^1.2.0"
},
"gitHead": "89b53ff2b561e69fad3a3e8671d7dcd0f1c09c3e"
"gitHead": "52796f674ad3f2642270e942e96443437c54ff72"
}

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

const pMap = require("p-map");
const readPkg = require("read-pkg");

@@ -21,3 +20,3 @@ const Package = require("@lerna/package");

function symlinkBinary(srcPackageRef, destPackageRef) {
return Promise.all([resolvePackageRef(srcPackageRef), resolvePackageRef(destPackageRef)]).then(
return Promise.all([Package.lazy(srcPackageRef), Package.lazy(destPackageRef)]).then(
([srcPackage, destPackage]) => {

@@ -49,10 +48,1 @@ const actions = Object.keys(srcPackage.bin).map(name => {

}
function resolvePackageRef(pkgRef) {
// don't use instanceof because it fails across nested module boundaries
if (typeof pkgRef !== "string" && pkgRef.location) {
return pkgRef;
}
return readPkg(pkgRef, { normalize: false }).then(json => new Package(json, pkgRef));
}
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