@percy/env
Advanced tools
Comparing version 1.0.0-beta.25 to 1.0.0-beta.26
@@ -252,7 +252,10 @@ "use strict"; | ||
return pr || null; | ||
} // parallel nonce & total | ||
} // parallel total & nonce | ||
get parallel() { | ||
let nonce = (() => { | ||
let total = parseInt(this.vars.PERCY_PARALLEL_TOTAL, 10); | ||
if (!Number.isInteger(total)) total = null; // no nonce if no total | ||
let nonce = total && (() => { | ||
var _this$vars$BUILD_TAG; | ||
@@ -309,11 +312,5 @@ | ||
let total = (() => { | ||
try { | ||
return parseInt(this.vars.PERCY_PARALLEL_TOTAL); | ||
} catch {} | ||
})(); | ||
return { | ||
nonce: nonce || null, | ||
total: total || null | ||
total: total || null, | ||
nonce: nonce || null | ||
}; | ||
@@ -320,0 +317,0 @@ } // git information for the current commit |
{ | ||
"name": "@percy/env", | ||
"version": "1.0.0-beta.25", | ||
"version": "1.0.0-beta.26", | ||
"license": "MIT", | ||
@@ -27,3 +27,3 @@ "main": "dist/index.js", | ||
}, | ||
"gitHead": "a07eade3bab0087e0573eddc3dc50d875fa3a778" | ||
"gitHead": "14549babc468eea4d91bfb80a5caaacdb9162a14" | ||
} |
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
16458
331