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.8.1 to 3.9.0

11

CHANGELOG.md

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

# [3.9.0](https://github.com/lerna/lerna/compare/v3.8.5...v3.9.0) (2019-01-08)
### Bug Fixes
* **describe-ref:** Properly handle sha-like tag names ([#1853](https://github.com/lerna/lerna/issues/1853)) ([094a1cb](https://github.com/lerna/lerna/commit/094a1cb))
## [3.8.1](https://github.com/lerna/lerna/compare/v3.8.0...v3.8.1) (2018-12-31)

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

5

lib/describe-ref.js

@@ -59,6 +59,7 @@ "use strict";

function parse(stdout, options = {}) {
const minimalShaRegex = /^([0-9a-f]{7,40})(-dirty)?$/;
// when git describe fails to locate tags, it returns only the minimal sha
if (/^[0-9a-f]{7,40}/.test(stdout)) {
if (minimalShaRegex.test(stdout)) {
// repo might still be dirty
const [, sha, isDirty] = /^([0-9a-f]{7,40})(-dirty)?/.exec(stdout);
const [, sha, isDirty] = minimalShaRegex.exec(stdout);

@@ -65,0 +66,0 @@ // count number of commits since beginning of time

4

package.json
{
"name": "@lerna/describe-ref",
"version": "3.8.1",
"version": "3.9.0",
"description": "Parse git describe output for lerna-related tags",

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

},
"gitHead": "00a372e194e23674fc0b7e94cc0f5ee799a13036"
"gitHead": "1c1ac155323499ba175d7f7e33c2e3f42a57a2f2"
}
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