@percy/core
Advanced tools
Comparing version 1.6.4 to 1.7.0
@@ -72,6 +72,2 @@ import PercyClient from '@percy/client'; | ||
if (this.delayUploads) { | ||
this.#uploads.concurrency = 1; | ||
} | ||
this.client = new PercyClient({ | ||
@@ -166,2 +162,3 @@ token, | ||
this.#uploads.stop(); | ||
this.build = {}; | ||
return this.client.createBuild().then(({ | ||
@@ -173,7 +170,9 @@ data: { | ||
}) => { | ||
this.build = { | ||
id | ||
}; | ||
this.build.number = attributes['build-number']; | ||
this.build.url = attributes['web-url']; | ||
let url = attributes['web-url']; | ||
let number = attributes['build-number']; | ||
Object.assign(this.build, { | ||
id, | ||
url, | ||
number | ||
}); | ||
if (!this.delayUploads) this.#uploads.run(); | ||
@@ -252,2 +251,3 @@ }); | ||
if (!this.deferUploads || !this.#uploads.has('build/create') || this.#uploads.size > 1) { | ||
if (this.build && !this.build.id) yield* this.#uploads.idle(); | ||
yield* this.#uploads.flush(s => { | ||
@@ -465,6 +465,6 @@ // do not log a count when not closing or while creating a build | ||
if (!this.skipUploads && this.delayUploads) this.#uploads.run(); | ||
if (!this.skipUploads && this.delayUploads && (!this.build || this.build.id)) this.#uploads.run(); | ||
return this.#uploads.push(`upload/${name}`, async () => { | ||
// when delayed, stop the queue before other uploads are processed | ||
if (this.delayUploads) this.#uploads.stop(); | ||
if (this.readyState < 2 && this.delayUploads) this.#uploads.stop(); | ||
@@ -471,0 +471,0 @@ try { |
{ | ||
"name": "@percy/core", | ||
"version": "1.6.4", | ||
"version": "1.7.0", | ||
"license": "MIT", | ||
@@ -42,6 +42,6 @@ "repository": { | ||
"dependencies": { | ||
"@percy/client": "1.6.4", | ||
"@percy/config": "1.6.4", | ||
"@percy/dom": "1.6.4", | ||
"@percy/logger": "1.6.4", | ||
"@percy/client": "1.7.0", | ||
"@percy/config": "1.7.0", | ||
"@percy/dom": "1.7.0", | ||
"@percy/logger": "1.7.0", | ||
"content-disposition": "^0.5.4", | ||
@@ -57,3 +57,3 @@ "cross-spawn": "^7.0.3", | ||
}, | ||
"gitHead": "651c0fad62f128053723f9b8d565c69496dc51e4" | ||
"gitHead": "f1418fb1effdaad2d32c65d1a358282ab1f9ec32" | ||
} |
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
148374
3302
+ Added@percy/client@1.7.0(transitive)
+ Added@percy/config@1.7.0(transitive)
+ Added@percy/dom@1.7.0(transitive)
+ Added@percy/env@1.7.0(transitive)
+ Added@percy/logger@1.7.0(transitive)
- Removed@percy/client@1.6.4(transitive)
- Removed@percy/config@1.6.4(transitive)
- Removed@percy/dom@1.6.4(transitive)
- Removed@percy/env@1.6.4(transitive)
- Removed@percy/logger@1.6.4(transitive)
Updated@percy/client@1.7.0
Updated@percy/config@1.7.0
Updated@percy/dom@1.7.0
Updated@percy/logger@1.7.0