Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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 4.5.2 to 5.0.0

2

lib/git.js

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

.find(branch => branch.startsWith('origin/'));
return branch ? branch.match(/^origin\/(.+)/)[1] : undefined;
return branch ? branch.match(/^origin\/(?<branch>.+)/)[1] : undefined;
}

@@ -24,0 +24,0 @@

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

@@ -25,5 +25,5 @@ "ava": {

"file-url": "^3.0.0",
"nyc": "^14.0.0",
"nyc": "^15.0.0",
"proxyquire": "^2.1.0",
"semantic-release": "^15.0.0",
"semantic-release": "^16.0.0",
"tempy": "^0.3.0",

@@ -33,3 +33,3 @@ "xo": "^0.25.0"

"engines": {
"node": ">=8.3"
"node": ">=10.13"
},

@@ -36,0 +36,0 @@ "files": [

// https://help.github.com/en/articles/virtual-environments-for-github-actions#environment-variables
const parseBranch = branch => (/^(?:refs\/heads\/)?(.+)$/i.exec(branch) || [])[1];
const parseBranch = branch => (/^(?:refs\/heads\/)?(?<branch>.+)$/i.exec(branch) || [])[1];

@@ -5,0 +5,0 @@ const getPrEvent = ({env}) => {

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