Socket
Socket
Sign inDemoInstall

@lerna/describe-ref

Package Overview
Dependencies
Maintainers
2
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lerna/describe-ref - npm Package Compare versions

Comparing version 3.3.0 to 3.5.0

11

CHANGELOG.md

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

# [3.5.0](https://github.com/lerna/lerna/compare/v3.4.3...v3.5.0) (2018-11-27)
### Features
* **version:** Add `--include-merged-tags` option ([#1712](https://github.com/lerna/lerna/issues/1712)) ([7ee05d7](https://github.com/lerna/lerna/commit/7ee05d7))
<a name="3.3.0"></a>

@@ -8,0 +19,0 @@ # [3.3.0](https://github.com/lerna/lerna/compare/v3.2.1...v3.3.0) (2018-09-06)

17

lib/describe-ref.js

@@ -10,4 +10,4 @@ "use strict";

function getArgs(options) {
const args = [
function getArgs(options, commandOptions = {}) {
let args = [
"describe",

@@ -28,7 +28,12 @@ // fallback to short sha if no tags located

if (commandOptions.includeMergedTags) {
// we want to consider all tags, also from merged branches
args = args.filter(arg => arg !== "--first-parent");
}
return args;
}
function describeRef(options = {}) {
const promise = childProcess.exec("git", getArgs(options), options);
function describeRef(options = {}, commandOptions = {}) {
const promise = childProcess.exec("git", getArgs(options, commandOptions), options);

@@ -45,4 +50,4 @@ return promise.then(({ stdout }) => {

function sync(options = {}) {
const stdout = childProcess.execSync("git", getArgs(options), options);
function sync(options = {}, commandOptions = {}) {
const stdout = childProcess.execSync("git", getArgs(options, commandOptions), options);
const result = parse(stdout, options);

@@ -49,0 +54,0 @@

{
"name": "@lerna/describe-ref",
"version": "3.3.0",
"version": "3.5.0",
"description": "Parse git describe output for lerna-related tags",

@@ -35,3 +35,3 @@ "keywords": [

},
"gitHead": "901e6d54a47151dfed3d6ed2912804b97d05c6b5"
"gitHead": "1c142db1ecb50120f0ddce8ff8a7d9cde1bee278"
}
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