percy-client
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -104,2 +104,11 @@ 'use strict'; | ||
value: function createBuild(repo, options) { | ||
var parallelNonce = this.environment.parallelNonce; | ||
var parallelTotalShards = this.environment.parallelTotalShards; | ||
// Only pass parallelism data if it all exists. | ||
if (!parallelNonce || !parallelTotalShards) { | ||
parallelNonce = null; | ||
parallelTotalShards = null; | ||
} | ||
options = options || {}; | ||
@@ -113,4 +122,4 @@ var data = { | ||
'pull-request-number': this.environment.pullRequestNumber, | ||
'parallel-nonce': this.environment.parallelNonce, | ||
'parallel-total-shards': this.environment.parallelTotalShards | ||
'parallel-nonce': parallelNonce, | ||
'parallel-total-shards': parallelTotalShards | ||
} | ||
@@ -117,0 +126,0 @@ } |
{ | ||
"name": "percy-client", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "JavaScript API client library for Percy (https://percy.io).", | ||
@@ -5,0 +5,0 @@ "main": "dist/main.js", |
Sorry, the diff of this file is too big to display
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
2202616
63416