Socket
Socket
Sign inDemoInstall

ci-info

Package Overview
Dependencies
Maintainers
2
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ci-info - npm Package Compare versions

Comparing version 3.3.2 to 3.4.0

19

CHANGELOG.md
# Changelog
## v3.4.0
- partial support Appflow CI (only CI detection) ([#84](https://github.com/watson/ci-info/pull/84))
- support Codemagic CI ([#85](https://github.com/watson/ci-info/pull/85))
- support Xcode Server CI ([#86](https://github.com/watson/ci-info/pull/86))
- support Xcode Cloud CI ([#86](https://github.com/watson/ci-info/pull/86))
## v3.3.2
- fix: export correct typings for `EAS`
- fix: export correct typings for `EAS`

@@ -60,6 +67,5 @@ ## v3.3.1

- Drop support for Node.js end-of-life versions: 0.10, 0.12, 4, 5, 7,
and 9
- Team Foundation Server will now be detected as Azure Pipelines. The
constant `ci.TFS` no longer exists - use `ci.AZURE_PIPELINES` instead
- Drop support for Node.js end-of-life versions: 0.10, 0.12, 4, 5, 7, and 9
- Team Foundation Server will now be detected as Azure Pipelines. The constant `ci.TFS` no longer exists - use
`ci.AZURE_PIPELINES` instead
- Remove deprecated `ci.TDDIUM` constant - use `ci.SOLANDO` instead

@@ -97,3 +103,4 @@

- chore: reduce npm package size by not including `.github` folder content ([#11](https://github.com/watson/ci-info/pull/11))
- chore: reduce npm package size by not including `.github` folder content
([#11](https://github.com/watson/ci-info/pull/11))

@@ -100,0 +107,0 @@ ## v1.3.0

@@ -38,2 +38,3 @@ /**

export const CODEBUILD: boolean;
export const CODEMAGIC: boolean;
export const CODEFRESH: boolean;

@@ -65,1 +66,3 @@ export const CODESHIP: boolean;

export const APPCENTER: boolean;
export const XCODE_CLOUD: boolean;
export const XCODE_SERVER: boolean;

@@ -25,28 +25,30 @@ 'use strict'

if (isCI) {
exports.name = vendor.name
if (!isCI) {
return
}
switch (typeof vendor.pr) {
case 'string':
// "pr": "CIRRUS_PR"
exports.isPR = !!env[vendor.pr]
break
case 'object':
if ('env' in vendor.pr) {
// "pr": { "env": "BUILDKITE_PULL_REQUEST", "ne": "false" }
exports.isPR = vendor.pr.env in env && env[vendor.pr.env] !== vendor.pr.ne
} else if ('any' in vendor.pr) {
// "pr": { "any": ["ghprbPullId", "CHANGE_ID"] }
exports.isPR = vendor.pr.any.some(function (key) {
return !!env[key]
})
} else {
// "pr": { "DRONE_BUILD_EVENT": "pull_request" }
exports.isPR = checkEnv(vendor.pr)
}
break
default:
// PR detection not supported for this vendor
exports.isPR = null
}
exports.name = vendor.name
switch (typeof vendor.pr) {
case 'string':
// "pr": "CIRRUS_PR"
exports.isPR = !!env[vendor.pr]
break
case 'object':
if ('env' in vendor.pr) {
// "pr": { "env": "BUILDKITE_PULL_REQUEST", "ne": "false" }
exports.isPR = vendor.pr.env in env && env[vendor.pr.env] !== vendor.pr.ne
} else if ('any' in vendor.pr) {
// "pr": { "any": ["ghprbPullId", "CHANGE_ID"] }
exports.isPR = vendor.pr.any.some(function (key) {
return !!env[key]
})
} else {
// "pr": { "DRONE_BUILD_EVENT": "pull_request" }
exports.isPR = checkEnv(vendor.pr)
}
break
default:
// PR detection not supported for this vendor
exports.isPR = null
}

@@ -59,2 +61,5 @@ })

env.BUILD_NUMBER || // Jenkins, TeamCity
env.CI_APP_ID || // Applfow
env.CI_BUILD_ID || // Applfow
env.CI_BUILD_NUMBER || // Applfow
env.RUN_ID || // TaskCluster, dsari

@@ -61,0 +66,0 @@ exports.name ||

{
"name": "ci-info",
"version": "3.3.2",
"version": "3.4.0",
"description": "Get details about the current Continuous Integration environment",

@@ -26,2 +26,3 @@ "main": "index.js",

"scripts": {
"lint:fix": "standard --fix",
"test": "standard && node test.js"

@@ -32,4 +33,4 @@ },

"standard": "^17.0.0",
"tape": "^5.5.3"
"tape": "^5.6.0"
}
}

@@ -52,3 +52,3 @@ # ci-info

| [dsari](https://github.com/rfinnie/dsari) | `ci.DSARI` | 🚫 |
| [Expo Application Services](https://expo.dev/eas) | `ci.EAS_BUILD` | 🚫 |
| [Expo Application Services](https://expo.dev/eas) | `ci.EAS` | 🚫 |
| [GitHub Actions](https://github.com/features/actions/) | `ci.GITHUB_ACTIONS` | ✅ |

@@ -117,4 +117,13 @@ | [GitLab CI](https://about.gitlab.com/gitlab-ci/) | `ci.GITLAB` | ✅ |

## Ports
ci-info has been ported to the following languages
| Language | Repository |
|----------|------------|
| Go | https://github.com/hofstadter-io/cinful |
| Rust | https://github.com/sagiegurari/ci_info |
## License
[MIT](LICENSE)

@@ -61,2 +61,8 @@ [

{
"name": "Codemagic",
"constant": "CODEMAGIC",
"env": "CM_BUILD_ID",
"pr": "CM_PULL_REQUEST"
},
{
"name": "AWS CodeBuild",

@@ -210,3 +216,14 @@ "constant": "CODEBUILD",

"env": "APPCENTER_BUILD_ID"
},
{
"name": "Xcode Cloud",
"constant": "XCODE_CLOUD",
"env": "CI_XCODE_PROJECT",
"pr": "CI_PULL_REQUEST_NUMBER"
},
{
"name": "Xcode Server",
"constant": "XCODE_SERVER",
"env": "XCS"
}
]
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