@applitools/ufg-client
Advanced tools
Comparing version 1.13.0 to 1.13.1
# Changelog | ||
## [1.13.1](https://github.com/Applitools-Dev/sdk/compare/js/ufg-client@1.13.0...js/ufg-client@1.13.1) (2024-10-03) | ||
### Bug Fixes | ||
* cache key for offline execution ([#2552](https://github.com/Applitools-Dev/sdk/issues/2552)) ([d0d1138](https://github.com/Applitools-Dev/sdk/commit/d0d11386be0f82c9e59e753bd0dc97aa3b05d93e)) | ||
## [1.13.0](https://github.com/Applitools-Dev/sdk/compare/js/ufg-client@1.12.3...js/ufg-client@1.13.0) (2024-09-30) | ||
@@ -4,0 +11,0 @@ |
@@ -43,2 +43,3 @@ "use strict"; | ||
fs_1.default.mkdirSync(offlineResourcesLocationPath); | ||
logger.log('offline ufg client created with path', offlineLocationPath); | ||
const fetchResource = (0, fetch_resource_1.makeFetchResource)({ | ||
@@ -65,6 +66,8 @@ concurrency: settings.fetchConcurrency, | ||
}); | ||
const render = async ({ target, settings, logger: _logger }) => { | ||
const render = async ({ target, settings, logger: renderLogger = logger }) => { | ||
renderLogger = renderLogger.extend({ tags: [`render-offline-${utils.general.shortid()}`] }); | ||
const renderId = utils.general.guid(); | ||
const renderPath = path_1.default.resolve(offlineLocationPath, `${renderId}.json`); | ||
await fs_1.default.promises.writeFile(renderPath, JSON.stringify({ target, settings }, null, 2)); | ||
renderLogger.log('render written to file at renderPath', renderPath); | ||
return { | ||
@@ -71,0 +74,0 @@ renderId: renderPath, |
{ | ||
"name": "@applitools/ufg-client", | ||
"version": "1.13.0", | ||
"version": "1.13.1", | ||
"homepage": "https://applitools.com", | ||
@@ -5,0 +5,0 @@ "bugs": { |
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
239361
6375