html-snapshots 5.4.0 → 5.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/async/index.js +2 -5
- package/package.json +7 -5
package/lib/async/index.js
CHANGED
|
@@ -174,21 +174,18 @@ class Notifier {
|
|
|
174
174
|
* @param {Number} timeout - timeout milliseconds to wait (max).
|
|
175
175
|
*/
|
|
176
176
|
add (outputFile, timeout) {
|
|
177
|
-
let failTimeout = timeout;
|
|
178
|
-
let timer;
|
|
179
|
-
|
|
180
177
|
if (!this.isStarted()) {
|
|
181
178
|
throw new Error("MUST call `start` before `add`");
|
|
182
179
|
}
|
|
183
180
|
|
|
184
181
|
if (!this._exists(outputFile)) {
|
|
185
182
|
// make sure we evaluate after the child process
|
|
186
|
-
failTimeout = parseInt(timeout, 10) + parseInt(this.padTimeout, 10);
|
|
183
|
+
let failTimeout = parseInt(timeout, 10) + parseInt(this.padTimeout, 10);
|
|
187
184
|
// Stagger and grow the failure timeout padding, add 1s every 10 processes
|
|
188
185
|
this.padTimeout += 100;
|
|
189
186
|
|
|
190
187
|
// setup a timeout handler to detect failure
|
|
191
|
-
timer = setTimeout(this.csFactory(done => {
|
|
188
|
+
let timer = setTimeout(this.csFactory(done => {
|
|
192
189
|
// if the output file has not already been removed
|
|
193
190
|
if (this._exists(outputFile)) {
|
|
194
191
|
pathExists(outputFile)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "html-snapshots",
|
|
3
|
-
"version": "5.4.
|
|
3
|
+
"version": "5.4.1",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "Alex Grant",
|
|
6
6
|
"email": "alex@localnerve.com",
|
|
@@ -55,12 +55,12 @@
|
|
|
55
55
|
"combine-errors": "3.0.3",
|
|
56
56
|
"got": "^14.6.6",
|
|
57
57
|
"phantomjs-prebuilt": "2.1.16",
|
|
58
|
-
"puppeteer": "^24.37.
|
|
58
|
+
"puppeteer": "^24.37.2",
|
|
59
59
|
"xml2js": "0.6.2"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"eslint": "^
|
|
63
|
-
"@eslint/js": "^
|
|
62
|
+
"eslint": "^10.0.0",
|
|
63
|
+
"@eslint/js": "^10.0.1",
|
|
64
64
|
"globals": "^17.3.0",
|
|
65
65
|
"express": "^5.2.1",
|
|
66
66
|
"mocha": "^11.7.5",
|
|
@@ -69,7 +69,9 @@
|
|
|
69
69
|
"sitemap-xml": "^0.1.0"
|
|
70
70
|
},
|
|
71
71
|
"overrides": {
|
|
72
|
-
"request": "npm:@cypress/request@3.0.10"
|
|
72
|
+
"request": "npm:@cypress/request@3.0.10",
|
|
73
|
+
"diff": "^8.0.3",
|
|
74
|
+
"glob": "^13.0.2"
|
|
73
75
|
},
|
|
74
76
|
"license": "MIT",
|
|
75
77
|
"engines": {
|