@applitools/ufg-client
Advanced tools
Comparing version 1.11.2 to 1.12.0
# Changelog | ||
## [1.12.0](https://github.com/Applitools-Dev/sdk/compare/js/ufg-client@1.11.2...js/ufg-client@1.12.0) (2024-05-28) | ||
### Features | ||
* dynamic timeout based on uploaded file size ([#2364](https://github.com/Applitools-Dev/sdk/issues/2364)) ([8a82d68](https://github.com/Applitools-Dev/sdk/commit/8a82d6839ace60fda27e153ba233019f137017fe)) | ||
### Dependencies | ||
* @applitools/req bumped to 1.7.0 | ||
#### Features | ||
* dynamic timeout based on uploaded file size ([#2364](https://github.com/Applitools-Dev/sdk/issues/2364)) ([8a82d68](https://github.com/Applitools-Dev/sdk/commit/8a82d6839ace60fda27e153ba233019f137017fe)) | ||
## [1.11.2](https://github.com/Applitools-Dev/sdk/compare/js/ufg-client@1.11.1...js/ufg-client@1.11.2) (2024-04-22) | ||
@@ -4,0 +19,0 @@ |
@@ -60,6 +60,17 @@ "use strict"; | ||
renders.forEach((render, index) => { | ||
var _a; | ||
const [, { resolve, reject }] = batch[index]; | ||
if (render.status === 'need-more-resources') { | ||
logger.error(`Got unexpected status ${render.status} in start render response`); | ||
reject(new Error(`Got unexpected status ${render.status} in start render response`)); | ||
try { | ||
logger.error(`Got unexpected UFG error in start render response. Doesn't have all the needed assets to render this page on all environments. ' | ||
+ 'Please contact Applitools support at support@applitools.com with the following information: ` + | ||
JSON.stringify({ renderId: render.renderId, jobId: render.jobId })); | ||
// next two lines are based on https://github.com/Applitools-Dev/grid-mono/blob/b4efefcd3a6bce294ae230f98e149fb571a5f51b/docs/visual-grid-protocol.md?plain=1#L162-L163 | ||
logger.error('missing resources: ', (_a = render.needMoreResources) === null || _a === void 0 ? void 0 : _a.join(', ').slice(0, 1000)); | ||
logger.error('needMoreDom: ', render.needMoreDom); | ||
logger.error(JSON.stringify(render).slice(0, 1000)); | ||
} | ||
finally { | ||
reject(new Error(`Got unexpected status ${render.status} in start render response`)); | ||
} | ||
} | ||
@@ -66,0 +77,0 @@ else { |
@@ -42,3 +42,6 @@ "use strict"; | ||
connectionTimeout: (_a = settings.connectionTimeout) !== null && _a !== void 0 ? _a : 300000 /* 5min */, | ||
requestTimeout: 30000, | ||
requestTimeout: { | ||
base: 30000 /* 30sec */, | ||
perByte: 0.01 /* 0.01ms per byte = 10 sec per MB */, | ||
}, | ||
retry: { | ||
@@ -45,0 +48,0 @@ limit: 5, |
@@ -102,3 +102,9 @@ "use strict"; | ||
return results.map(result => { | ||
return { jobId: result.jobId, renderId: result.renderId, status: result.renderStatus }; | ||
return { | ||
jobId: result.jobId, | ||
renderId: result.renderId, | ||
status: result.renderStatus, | ||
needMoreResources: result.needMoreResources, | ||
needMoreDom: result.needMoreDom, | ||
}; | ||
}); | ||
@@ -105,0 +111,0 @@ }); |
{ | ||
"name": "@applitools/ufg-client", | ||
"version": "1.11.2", | ||
"version": "1.12.0", | ||
"homepage": "https://applitools.com", | ||
@@ -46,3 +46,3 @@ "bugs": { | ||
"@applitools/logger": "2.0.16", | ||
"@applitools/req": "1.6.7", | ||
"@applitools/req": "1.7.0", | ||
"@applitools/utils": "1.7.2", | ||
@@ -49,0 +49,0 @@ "@xmldom/xmldom": "0.8.10", |
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
136846
2131
99
3
4
1
15
+ Added@applitools/req@1.7.0(transitive)
- Removed@applitools/req@1.6.7(transitive)
Updated@applitools/req@1.7.0