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

env-ci

Package Overview
Dependencies
Maintainers
2
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 9.1.1 to 10.0.0

4

lib/git.js

@@ -16,3 +16,3 @@ import { execaSync } from "execa";

["rev-parse", "--abbrev-ref", "HEAD"],
options
options,
).stdout;

@@ -24,3 +24,3 @@

["show", "-s", "--pretty=%d", "HEAD"],
options
options,
)

@@ -27,0 +27,0 @@ .stdout.replace(/^\(|\)$/g, "")

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

@@ -9,3 +9,3 @@ "type": "module",

"dependencies": {
"execa": "^7.0.0",
"execa": "^8.0.0",
"java-properties": "^1.0.2"

@@ -15,9 +15,9 @@ },

"ava": "5.3.1",
"c8": "8.0.0",
"c8": "8.0.1",
"file-url": "4.0.0",
"prettier": "2.8.8",
"tempy": "3.0.0"
"prettier": "3.0.3",
"tempy": "3.1.0"
},
"engines": {
"node": "^16.14 || >=18"
"node": "^18.17 || >=20.6.1"
},

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

@@ -44,3 +44,3 @@ # env-ci

console.log(
`Building Pull Request #${pr} originating from branch ${prBranch} and targeting branch ${branch}`
`Building Pull Request #${pr} originating from branch ${prBranch} and targeting branch ${branch}`,
);

@@ -47,0 +47,0 @@ } else {

@@ -19,3 +19,3 @@ // https://docs.microsoft.com/en-us/azure/devops/pipelines/build/variables

branch: parseBranch(
isPr ? env.SYSTEM_PULLREQUEST_TARGETBRANCH : env.BUILD_SOURCEBRANCH
isPr ? env.SYSTEM_PULLREQUEST_TARGETBRANCH : env.BUILD_SOURCEBRANCH,
),

@@ -25,3 +25,3 @@ pr,

prBranch: parseBranch(
isPr ? env.SYSTEM_PULLREQUEST_SOURCEBRANCH : undefined
isPr ? env.SYSTEM_PULLREQUEST_SOURCEBRANCH : undefined,
),

@@ -28,0 +28,0 @@ root: env.BUILD_REPOSITORY_LOCALPATH,

@@ -46,3 +46,3 @@ import { readFileSync } from "node:fs";

? `refs/pull/${getPrNumber(env)}/merge`
: env.GITHUB_REF
: env.GITHUB_REF,
);

@@ -49,0 +49,0 @@

@@ -41,3 +41,3 @@ // https://confluence.jetbrains.com/display/TCD10/Predefined+Build+Parameters

(key === "branch" ? branch({ env, cwd }) : undefined),
])
]),
);

@@ -44,0 +44,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