Socket
Socket
Sign inDemoInstall

find-yarn-workspace-root

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

find-yarn-workspace-root - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

11

CHANGELOG.md

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

<a name="1.2.0"></a>
# [1.2.0](https://github.com/square/find-yarn-workspace-root/compare/v1.0.0...v1.2.0) (2018-08-09)
### Features
* allow new `manifest.workspaces.packages` format ([5521d97](https://github.com/square/find-yarn-workspace-root/commit/5521d97))
* make initial path optional ([475aaff](https://github.com/square/find-yarn-workspace-root/commit/475aaff))
<a name="1.1.0"></a>

@@ -7,0 +18,0 @@ # [1.1.0](https://github.com/square/find-yarn-workspace-root/compare/v1.0.0...v1.1.0) (2018-03-23)

5

index.js

@@ -12,6 +12,9 @@ 'use strict';

* https://github.com/yarnpkg/yarn/blob/ddf2f9ade211195372236c2f39a75b00fa18d4de/src/config.js#L612
* @param {string} initial
* @param {string} [initial]
* @return {string|null}
*/
function findWorkspaceRoot(initial) {
if (!initial) {
initial = process.cwd();
}
let previous = null;

@@ -18,0 +21,0 @@ let current = path.normalize(initial);

2

package.json
{
"name": "find-yarn-workspace-root",
"version": "1.1.0",
"version": "1.2.0",
"description": "Algorithm for finding the root of a yarn workspace, extracted from yarnpkg.com",

@@ -5,0 +5,0 @@ "repository": {

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