Comparing version 9.1.1 to 10.0.0
@@ -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 @@ }; |
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
53135
+ Addedexeca@8.0.1(transitive)
+ Addedget-stream@8.0.1(transitive)
+ Addedhuman-signals@5.0.0(transitive)
+ Addedsignal-exit@4.1.0(transitive)
- Removedexeca@7.2.0(transitive)
- Removedget-stream@6.0.1(transitive)
- Removedhuman-signals@4.3.1(transitive)
- Removedsignal-exit@3.0.7(transitive)
Updatedexeca@^8.0.0