From cbd69b852e85b73c21cdbaea228f19529c23183c Mon Sep 17 00:00:00 2001 From: Aleksandr Grenishin Date: Tue, 30 Jul 2024 20:04:09 +0300 Subject: [PATCH] feat: add cloud-image-editor telemetry (#703) Co-authored-by: nd0ut --- blocks/CloudImageEditor/src/util.js | 2 ++ utils/cdn-utils.js | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/blocks/CloudImageEditor/src/util.js b/blocks/CloudImageEditor/src/util.js index b8d298d41..04387b069 100644 --- a/blocks/CloudImageEditor/src/util.js +++ b/blocks/CloudImageEditor/src/util.js @@ -1,3 +1,4 @@ +import { PACKAGE_NAME, PACKAGE_VERSION } from '../../../env.js'; import { createCdnUrl, createCdnUrlModifiers } from '../../../utils/cdn-utils.js'; import { COMMON_OPERATIONS, transformationsToOperations } from './lib/transformationUtils.js'; @@ -14,6 +15,7 @@ export function viewerImageSrc(originalUrl, width, transformations) { transformationsToOperations(transformations), `quality/${quality}`, `stretch/off/-/resize/${size}x`, + `@clib/${PACKAGE_NAME}/${PACKAGE_VERSION}/uc-cloud-image-editor/`, ), ); } diff --git a/utils/cdn-utils.js b/utils/cdn-utils.js index 98b412fa2..cc6de8056 100644 --- a/utils/cdn-utils.js +++ b/utils/cdn-utils.js @@ -1,5 +1,3 @@ -import { PACKAGE_NAME, PACKAGE_VERSION } from '../env.js'; - /** * Trim leading `-/`, `/` and trailing `/` from CDN operation *