Skip to content

Commit c31de22

Browse files
authored
deps: downgrade ci-info to 4.3.0 (npm#8661)
Tests for libnpmpublish fail with ci-info@4.3.1 ref: watson/ci-info#140
1 parent b3409f4 commit c31de22

File tree

4 files changed

+19
-21
lines changed

4 files changed

+19
-21
lines changed

node_modules/ci-info/index.js

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,22 @@ exports.name = null
1515
exports.isPR = null
1616
exports.id = null
1717

18-
if (env.CI !== 'false') {
19-
vendors.forEach(function (vendor) {
20-
const envs = Array.isArray(vendor.env) ? vendor.env : [vendor.env]
21-
const isCI = envs.every(function (obj) {
22-
return checkEnv(obj)
23-
})
18+
vendors.forEach(function (vendor) {
19+
const envs = Array.isArray(vendor.env) ? vendor.env : [vendor.env]
20+
const isCI = envs.every(function (obj) {
21+
return checkEnv(obj)
22+
})
2423

25-
exports[vendor.constant] = isCI
24+
exports[vendor.constant] = isCI
2625

27-
if (!isCI) {
28-
return
29-
}
26+
if (!isCI) {
27+
return
28+
}
3029

31-
exports.name = vendor.name
32-
exports.isPR = checkPR(vendor)
33-
exports.id = vendor.constant
34-
})
35-
}
30+
exports.name = vendor.name
31+
exports.isPR = checkPR(vendor)
32+
exports.id = vendor.constant
33+
})
3634

3735
exports.isCI = !!(
3836
env.CI !== 'false' && // Bypass all checks if CI env is explicitly set to 'false'

node_modules/ci-info/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ci-info",
3-
"version": "4.3.1",
3+
"version": "4.3.0",
44
"description": "Get details about the current Continuous Integration environment",
55
"main": "index.js",
66
"typings": "index.d.ts",

package-lock.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
"archy": "~1.0.0",
9898
"cacache": "^20.0.1",
9999
"chalk": "^5.6.2",
100-
"ci-info": "^4.3.1",
100+
"ci-info": "^4.3.0",
101101
"cli-columns": "^4.0.0",
102102
"fastest-levenshtein": "^1.0.16",
103103
"fs-minipass": "^3.0.3",
@@ -3040,9 +3040,9 @@
30403040
}
30413041
},
30423042
"node_modules/ci-info": {
3043-
"version": "4.3.1",
3044-
"resolved": "https://registry.npmjs.org/ci-info/-/ci-info-4.3.1.tgz",
3045-
"integrity": "sha512-Wdy2Igu8OcBpI2pZePZ5oWjPC38tmDVx5WKUXKwlLYkA0ozo85sLsLvkBbBn/sZaSCMFOGZJ14fvW9t5/d7kdA==",
3043+
"version": "4.3.0",
3044+
"resolved": "https://registry.npmjs.org/ci-info/-/ci-info-4.3.0.tgz",
3045+
"integrity": "sha512-l+2bNRMiQgcfILUi33labAZYIWlH1kWDp+ecNo5iisRKrbm0xcRyCww71/YU0Fkw0mAFpz9bJayXPjey6vkmaQ==",
30463046
"funding": [
30473047
{
30483048
"type": "github",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
"archy": "~1.0.0",
6666
"cacache": "^20.0.1",
6767
"chalk": "^5.6.2",
68-
"ci-info": "^4.3.1",
68+
"ci-info": "^4.3.0",
6969
"cli-columns": "^4.0.0",
7070
"fastest-levenshtein": "^1.0.16",
7171
"fs-minipass": "^3.0.3",

0 commit comments

Comments
 (0)