Socket
Socket
Sign inDemoInstall

env-ci

Package Overview
Dependencies
Maintainers
1
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

env-ci - npm Package Compare versions

Comparing version 1.7.1 to 1.7.2

8

lib/git.js

@@ -20,3 +20,9 @@ const execa = require('execa');

try {
return execa.sync('git', ['rev-parse', '--abbrev-ref', 'HEAD']).stdout;
const branch = execa
.sync('git', ['show', '-s', '--pretty=%d', 'HEAD'])
.stdout.match(/\(?(.*)\)?/)[1]
.split(', ')
.find(branch => branch.startsWith('origin/'));
return branch ? branch.match(/^origin\/(.+)/)[1] : execa.sync('git', ['rev-parse', '--abbrev-ref', 'HEAD']).stdout;
} catch (err) {

@@ -23,0 +29,0 @@ return undefined;

3

package.json
{
"name": "env-ci",
"description": "Get environment variables exposed by CI services",
"version": "1.7.1",
"version": "1.7.2",
"author": "Pierre Vanduynslager (https://github.com/pvdlg)",

@@ -16,2 +16,3 @@ "bugs": {

"codecov": "^3.0.0",
"file-url": "^2.0.2",
"nyc": "^11.1.0",

@@ -18,0 +19,0 @@ "semantic-release": "^15.0.0",

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