Socket
Socket
Sign inDemoInstall

is-ci

Package Overview
Dependencies
1
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.9 to 1.0.10

19

index.js
'use strict'
module.exports = !!(
// Generic environment variables
process.env.CI || // Travis CI, CircleCI, GitlabCI, Appveyor, CodeShip, ...
process.env.CONTINUOUS_INTEGRATION || // Travis CI, ...
process.env.BUILD_NUMBER || // Jenkins, TeamCity, ...
// Sever specific environment variables
process.env.JENKINS_URL || // Jenkins
process.env.bamboo_planKey || // Bamboo (by Atlassian)
process.env.TF_BUILD || // Team Foundation Server (by Microsoft)
process.env.TEAMCITY_VERSION || // TeamCity (by JetBrains)
process.env.BUILDKITE || // Buildkite
process.env.HUDSON_URL || // Hudson
(process.env.TASK_ID && process.env.RUN_ID) || // TaskCluster
process.env.GO_PIPELINE_LABEL || // GoCD
process.env.BITBUCKET_COMMIT || // Bitbucket Pipelines
false
)
module.exports = require('ci-info').isCI

10

package.json
{
"name": "is-ci",
"version": "1.0.9",
"version": "1.0.10",
"description": "Detect if your code is running on a CI server",
"main": "index.js",
"dependencies": {},
"dependencies": {
"ci-info": "^1.0.0"
},
"devDependencies": {

@@ -32,5 +34,5 @@ "clear-require": "^1.0.1",

"coordinates": [
55.6876717,
12.5955801
55.6876732,
12.5955341
]
}

@@ -15,3 +15,3 @@ # is-ci

```
npm install is-ci
npm install is-ci --save
```

@@ -40,3 +40,2 @@

- [Team Foundation Server](https://www.visualstudio.com/en-us/products/tfs-overview-vs.aspx)
- [Visual Studio Online CI](https://www.visualstudio.com/en-us/products/what-is-visual-studio-online-vs.aspx)
- [GitLab CI](https://about.gitlab.com/gitlab-ci/)

@@ -46,3 +45,3 @@ - [Codeship](https://codeship.com)

- [Magnum CI](https://magnum-ci.com)
- [Semaphore CI](https://semaphoreci.com)
- [Semaphore](https://semaphoreci.com)
- [AppVeyor](http://www.appveyor.com)

@@ -49,0 +48,0 @@ - [Buildkite](https://buildkite.com)

@@ -15,3 +15,4 @@ 'use strict'

clearRequire('./')
clearRequire('ci-info')
isCI = require('./')
assert(!isCI)

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc