bugsnag-build-reporter
Advanced tools
Comparing version 1.0.2 to 1.0.3
# Changelog | ||
## 1.0.3 (2020-04-07) | ||
- Prefer remote named `origin` when detecting source control info (#7) | ||
## 1.0.2 (2019-05-23) | ||
@@ -4,0 +8,0 @@ |
@@ -83,2 +83,9 @@ const findNearest = require('find-nearest-file') | ||
cb => exec('git rev-parse HEAD', { cwd }, cb), | ||
cb => { | ||
// eslint-disable-next-line | ||
exec('git remote get-url origin', { cwd }, (err, data) => { | ||
// ignore this error in case origin doesn't exist | ||
cb(null, data) | ||
}) | ||
}, | ||
cb => exec('git remote -v', { cwd }, cb) | ||
@@ -88,3 +95,3 @@ ], (err, data) => { | ||
revision: data[0] ? data[0].trim() : null, | ||
repository: data[1] ? data[1].split(/\t|\s|\n/)[1] : null | ||
repository: data[1] ? data[1].trim() : (data[2] ? data[2].split(/\t|\s|\n/)[1] : null) | ||
}) | ||
@@ -91,0 +98,0 @@ }) |
{ | ||
"name": "bugsnag-build-reporter", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "A tool for reporting your application’s builds to Bugsnag", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
# bugsnag-build-reporter | ||
[![Build status](https://travis-ci.org/bugsnag/bugsnag-build-reporter-node.svg?branch=master)](https://travis-ci.org/bugsnag/bugsnag-build-reporter-node) | ||
[![Build status](https://travis-ci.com/bugsnag/bugsnag-build-reporter-node.svg?branch=master)](https://travis-ci.com/bugsnag/bugsnag-build-reporter-node) | ||
[![NPM](https://img.shields.io/npm/v/bugsnag-build-reporter.svg)](https://npmjs.org/package/bugsnag-build-reporter) | ||
@@ -4,0 +4,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
67119
747
12