🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →

@sentry/release-parser

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentry/release-parser - npm Package Compare versions

Comparing version

to
1.2.0

# Changelog
## 1.2.0
- Retain original version formatting. ([#23](https://github.com/getsentry/sentry-release-parser/pull/23))
## 1.1.4

@@ -4,0 +8,0 @@

@@ -13,2 +13,3 @@ export declare class InvalidRelease extends Error {

buildCode?: string;
rawShort: string;
components: number;

@@ -15,0 +16,0 @@ rawQuad: [string, string | null, string | null, string | null];

@@ -71,16 +71,3 @@ "use strict";

if (v) {
const [major, minor, patch, revision] = v.rawQuad;
rv += major;
if (minor) {
rv += `.${minor}`;
}
if (patch) {
rv += `.${patch}`;
}
if (revision) {
rv += `.${revision}`;
}
if (v.pre) {
rv += "-" + v.pre;
}
rv += v.rawShort;
if (shortHash) {

@@ -139,2 +126,3 @@ rv += ` (${shortHash})`;

const components = rawQuad.reduce((acc, cur) => acc + (cur ? 1 : 0), 0);
const rawShort = match[6] ? version.substr(0, version.indexOf("+")) : version;
return {

@@ -148,2 +136,3 @@ raw: version,

buildCode: match[6] || undefined,
rawShort,
components,

@@ -150,0 +139,0 @@ rawQuad,

{
"name": "@sentry/release-parser",
"version": "1.1.4",
"version": "1.2.0",
"description": "A release parser",

@@ -5,0 +5,0 @@ "repository": "git://github.com/getsentry/sentry-release-parser.git",